/** * Tests whether the getTypes method correctly converts the given tags. * * @param string $type Type string to test * @param string[] $expected Array of expected types * * @covers \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::getTypes() * * @dataProvider provideTypesToExpand * * @return void */ public function testExpandTypeIntoCorrectFcqn($type, $expected) { $docblock = new \phpDocumentor\Reflection\DocBlock('', '\\My\\Namespace', array('Alias' => '\\My\\Namespace\\Aliasing')); $tag = new ReturnTag('return', $type); $tag->setDocBlock($docblock); $this->assertEquals($expected, $tag->getTypes()); }