Skip to content

Commit ab92485

Browse files
committed
add test using deprecated reflection doc block feature to legacy group
1 parent 2d3300e commit ab92485

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public static function invalidTypesProvider()
5858
return [
5959
'pub' => ['pub', null, null],
6060
'stat' => ['stat', null, null],
61-
'foo' => ['foo', self::isPhpDocumentorV5() ? 'Foo.' : null, null],
6261
'bar' => ['bar', self::isPhpDocumentorV5() ? 'Bar.' : null, null],
6362
];
6463
}
@@ -73,6 +72,16 @@ public function testInvalid($property, $shortDescription, $longDescription)
7372
$this->assertSame($longDescription, $this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', $property));
7473
}
7574

75+
/**
76+
* @group legacy
77+
*/
78+
public function testEmptyParamAnnotation()
79+
{
80+
$this->assertNull($this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo'));
81+
$this->assertSame(self::isPhpDocumentorV5() ? 'Foo.' : null, $this->extractor->getShortDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo'));
82+
$this->assertNull($this->extractor->getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\InvalidDummy', 'foo'));
83+
}
84+
7685
/**
7786
* @dataProvider typesWithNoPrefixesProvider
7887
*/

0 commit comments

Comments
 (0)