parseComment('@OA\Parameter(description="This is my parameter")'); $this->assertIsArray($annotations); $parameter = $annotations[0]; $this->assertInstanceOf('OpenApi\Annotations\Parameter', $parameter); $this->assertSame('This is my parameter', $parameter->description); } public function testDeprecatedAnnotationWarning() { $this->assertOpenApiLogEntryContains('The annotation @SWG\Definition() is deprecated.'); $this->parseComment('@SWG\Definition()'); } }