Ejemplo n.º 1
0
 /**
  * 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\ParamTag::getTypes()
  *
  * @dataProvider provideTypesToExpand
  */
 public function testExpandTypeIntoCorrectFcqn($type, $expected)
 {
     $docblock = new \phpDocumentor\Reflection\DocBlock('', '\\My\\Namespace', array('Alias' => '\\My\\Namespace\\Aliasing'));
     $tag = new ParamTag('param', $type . ' $my_type');
     $tag->setDocBlock($docblock);
     $this->assertEquals($expected, $tag->getTypes());
 }