/**
  * @dataProvider dataTestApiDeclaration
  */
 public function testApiDeclaration($resource, $expected)
 {
     set_error_handler(array($this, 'handleDeprecation'));
     $data = $this->extractor->all();
     restore_error_handler();
     $actual = $this->formatter->format($data, $resource);
     $this->assertEquals($expected, $actual);
 }
 /**
  * Format documentation data for one route.
  *
  * @param ApiDoc $annotation
  *                           return string|array
  */
 public function formatOne(ApiDoc $annotation)
 {
     return $this->formatter->formatOne($annotation);
 }
 protected function getApiDeclaration(array $data, $resource)
 {
     return $this->formatter->format($data, '/' . $resource);
 }