/**
  * {@inheritdoc}
  */
 public function formatOne(ApiDoc $annotation)
 {
     return $annotation->toArray();
 }
Esempio n. 2
0
 public function testConstructWithMultipleTags()
 {
     $data = array('tags' => array('experimental' => '#0000ff', 'beta' => '#0000ff'));
     $annot = new ApiDoc($data);
     $array = $annot->toArray();
     $this->assertTrue(is_array($array));
     $this->assertTrue(is_array($array['tags']), 'Tags should be in array');
     $this->assertEquals($data['tags'], $array['tags']);
 }
 /**
  * {@inheritdoc}
  */
 public function formatOne(ApiDoc $annotation)
 {
     return $this->renderOne($this->processAnnotation($annotation->toArray()));
 }