minor #26103 [PropertyInfo] backport regression test from 3.4 (xabbuh)

This PR was merged into the 2.8 branch.

Discussion
----------

[PropertyInfo] backport regression test from 3.4

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

a9ab167 backport regression test from 3.4
This commit is contained in:
Robin Chalas 2018-02-09 14:09:13 +01:00
commit 36e79f7c21

View File

@ -74,4 +74,21 @@ class PhpDocExtractorTest extends TestCase
array('staticSetter', null, null, null),
);
}
public function testParamTagTypeIsOmitted()
{
$this->assertNull($this->extractor->getTypes('Symfony\Component\PropertyInfo\Tests\PhpDocExtractors\OmittedParamTagTypeDocBlock', 'omittedType'));
}
}
class OmittedParamTagTypeDocBlock
{
/**
* The type is omitted here to ensure that the extractor doesn't choke on missing types.
*
* @param $omittedTagType
*/
public function setOmittedType(array $omittedTagType)
{
}
}