From 0b61a6a06bda19c3ca4020f6fc93e458e0d9c0ec Mon Sep 17 00:00:00 2001 From: Nicolas PHILIPPE Date: Mon, 29 Aug 2022 14:28:47 +0200 Subject: [PATCH] [doc] document `assertMatchesSchema()` (#106) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5da17c7..6625dcb 100644 --- a/README.md +++ b/README.md @@ -435,6 +435,8 @@ $json = $browser // assert on each element of an array // {"foo": [1, 2, 3]} $json->assertThatEach('foo', fn(Json $json) => $json->isGreaterThan(0)); + // assert json matches given json schema + $json->assertMatchesSchema(file_get_contents('/path/to/json-schema.json')); }) ; ```