Example #1
0
 public function testAlignmentOfOutputAndResponseModels2()
 {
     $data = array('responseMap' => array(200 => 'FooBar', 400 => 'Foo\\ValidationErrorCollection'));
     $apiDoc = new ApiDoc($data);
     $map = $apiDoc->getResponseMap();
     $this->assertCount(2, $map);
     $this->assertArrayHasKey(200, $map);
     $this->assertArrayHasKey(400, $map);
     $this->assertEquals($apiDoc->getOutput(), $map[200]);
 }