public function testGetMethodAnnotations() { $annotations = $this->extractor->getMethodAnnotations('Zckrs\\GenDocApi\\Test\\Client', 'get'); $this->assertCount(5, $annotations, 'Number of get annotations'); $this->assertArrayHasKey('ApiDescription', $annotations, 'get have an ApiDocumentation annotation'); $this->assertArrayHasKey('type', $annotations['ApiReturnObject'][0], 'The "type" attribute for get/ApiReturnObject annotation exists'); }