Skip to content

Commit

Permalink
[doc] document assertMatchesSchema() (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikophil authored Aug 29, 2022
1 parent 29171b7 commit 0b61a6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
})
;
```
Expand Down

0 comments on commit 0b61a6a

Please sign in to comment.