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 read_malformed_input()
 {
     Json::read(new StringInput('this.is.not.json'));
 }