diff --git a/Tests/Extractor/PhpDocExtractorTest.php b/Tests/Extractor/PhpDocExtractorTest.php index 8ec2a56..f71664d 100644 --- a/Tests/Extractor/PhpDocExtractorTest.php +++ b/Tests/Extractor/PhpDocExtractorTest.php @@ -58,7 +58,6 @@ public static function invalidTypesProvider() return [ 'pub' => ['pub', null, null], 'stat' => ['stat', null, null], - 'foo' => ['foo', self::isPhpDocumentorV5() ? 'Foo.' : null, null], 'bar' => ['bar', self::isPhpDocumentorV5() ? 'Bar.' : null, null], ]; } @@ -73,6 +72,16 @@ public function testInvalid($property, $shortDescription, $longDescription) $this->assertSame($longDescription, $this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', $property)); } + /** + * @group legacy + */ + public function testEmptyParamAnnotation() + { + $this->assertNull($this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo')); + $this->assertSame(self::isPhpDocumentorV5() ? 'Foo.' : null, $this->extractor->getShortDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo')); + $this->assertNull($this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo')); + } + /** * @dataProvider typesWithNoPrefixesProvider */