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