Skip to content

Commit 0b61a6a

Browse files
authored
[doc] document assertMatchesSchema() (#106)
1 parent 29171b7 commit 0b61a6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ $json = $browser
435435
// assert on each element of an array
436436
// {"foo": [1, 2, 3]}
437437
$json->assertThatEach('foo', fn(Json $json) => $json->isGreaterThan(0));
438+
// assert json matches given json schema
439+
$json->assertMatchesSchema(file_get_contents('/path/to/json-schema.json'));
438440
})
439441
;
440442
```

0 commit comments

Comments
 (0)