We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca28c2e commit 7db355bCopy full SHA for 7db355b
tests/AssertTraitTest.php
@@ -13,6 +13,18 @@
13
14
class AssertTraitTest extends \PHPUnit_Framework_TestCase
15
{
16
+ /**
17
+ * Showcase for the Wiki
18
+ *
19
+ * @see https://github.com/estahn/phpunit-json-assertions/wiki/assertJsonMatchesSchema
20
+ */
21
+ public function testAssertJsonMatchesSchemaSimple()
22
+ {
23
+ $content = json_decode(file_get_contents(Utils::getJsonPath('assertJsonMatchesSchema_simple.json')));
24
+
25
+ AssertTraitImpl::assertJsonMatchesSchema(Utils::getSchemaPath('assertJsonMatchesSchema_simple.schema.json'), $content);
26
+ }
27
28
public function testAssertJsonMatchesSchema()
29
30
$content = json_decode('{"foo":123}');
0 commit comments