EXAMPLE ASSERTION https://github.com/swaggest/php-json-schema protected function assertValidResponse( $schema, $response ){ $validator = Schema::import($schema); try { $data = json_decode($response>getContent()); $validator>in($data); $this>assertTrue(true, ‘Something went wrong.’) } catch (InvalidValue $e) { $this>fail($e>getMessage()); } }