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 ac83dc2 commit 41aebb9Copy full SHA for 41aebb9
tests/AssertTraitTest.php
@@ -56,6 +56,14 @@ public function testAssertJsonSchemaFailMessage()
56
self::assertInstanceOf('PHPUnit_Framework_ExpectationFailedException', $exception);
57
}
58
59
+ public function testAssertJsonMatchesSchemaString()
60
+ {
61
+ $content = json_decode('{"foo":123}');
62
+ $schema = file_get_contents(self::getSchema('test.schema.json'));
63
+
64
+ AssertTraitImpl::assertJsonMatchesSchemaString($schema, $content);
65
+ }
66
67
/**
68
* Tests assertJsonValueEquals().
69
*
0 commit comments