Slide 68
Slide 68 text
EXAMPLE TEST
EXAMPLE TEST
https://github.com/thephpleague/json-guard
// ...
$schemas = json_decode(
file_get_contents('meetups-schema.json')
);
$response = $client->get('/api/meetups')
$validator = new League\JsonGuard\Validator(
json_decode($response->response->content()),
$schema);
$this->assertTrue($validator->passes());
51