use Symfony\Component\PropertyInfo\Type;
/**
* @author Kévin Dunglas <dunglas@gmail.com>
*/
class PhpDocExtractorTest extends TestCase
{ private PhpDocExtractor
$extractor;
protected function setUp(): void
{ $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));
}