$this->extractor =
new PhpDocExtractor();
} /**
* @dataProvider typesProvider
*/
public function testExtract($property, array
$type = null,
$shortDescription,
$longDescription) { $this->
assertEquals($type,
$this->extractor->
getTypes('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy',
$property));
$this->
assertSame($shortDescription,
$this->extractor->
getShortDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy',
$property));
$this->
assertSame($longDescription,
$this->extractor->
getLongDescription('Symfony\Component\PropertyInfo\Tests\Fixtures\Dummy',
$property));
} public function testParamTagTypeIsOmitted() { $this->
assertNull($this->extractor->
getTypes(OmittedParamTagTypeDocBlock::
class, 'omittedType'
));
} public static function invalidTypesProvider() { return [ 'pub' =>
['pub', null, null
],