Skip to content

Commit

Permalink
minor #54361 [PropertyInfo] add test using deprecated reflection doc …
Browse files Browse the repository at this point in the history
…block feature to legacy group (xabbuh)

This PR was merged into the 5.4 branch.

Discussion
----------

[PropertyInfo] add test using deprecated reflection doc block feature to legacy group

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

see phpDocumentor/ReflectionDocBlock#360

Commits
-------

ab92485 add test using deprecated reflection doc block feature to legacy group
  • Loading branch information
xabbuh committed Mar 21, 2024
2 parents 2d3300e + ab92485 commit 26ba359
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -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],
];
}
Expand All @@ -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
*/
Expand Down

0 comments on commit 26ba359

Please sign in to comment.