| 
13 | 13 | 
 
  | 
14 | 14 | class AssertTraitTest extends \PHPUnit_Framework_TestCase  | 
15 | 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 | + | 
16 | 28 |  public function testAssertJsonMatchesSchema()  | 
17 | 29 |  {  | 
18 | 30 |  $content = json_decode('{"foo":123}');  | 
 | 
0 commit comments