1 | <?php |
||
10 | trait SchemaAssertions |
||
11 | { |
||
12 | /** |
||
13 | * @var Dereferencer |
||
14 | */ |
||
15 | private $dereferencer; |
||
16 | |||
17 | public function setupSchemaAssertions() |
||
21 | |||
22 | /** |
||
23 | * @param mixed $json |
||
24 | * @param string $schemaPath |
||
25 | */ |
||
26 | public function assertJsonMatchesSchema($json, string $schemaPath): void |
||
32 | |||
33 | private function normalizeSchemaPath(string $schemaPath): string |
||
41 | |||
42 | /** |
||
43 | * @return ValidatorPasses |
||
44 | */ |
||
45 | private static function validatorPasses(): Constraint |
||
49 | } |
||
50 |