public function verify_successful_response($schema, $example) { if ($example['response']['code'] < 300) { $schema->validate(Json::read($example['response']['payload'])); } }
public function of_string_with_format() { $this->assertEquals('"Test"', Json::of('Test', Format::$DEFAULT)); }