/**
  * 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());
 }
 /**
  * Test that the \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag can
  * understand the @return DocBlock.
  *
  * @param string $type
  * @param string $content
  * @param string $extractedType
  * @param string $extractedTypes
  * @param string $extractedDescription
  *
  * @covers \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag
  * @dataProvider provideDataForConstructor
  *
  * @return void
  */
 public function testConstructorParsesInputsIntoCorrectFields($type, $content, $extractedType, $extractedTypes, $extractedDescription)
 {
     $tag = new ReturnTag($type, $content);
     $this->assertEquals($type, $tag->getName());
     $this->assertEquals($extractedType, $tag->getType());
     $this->assertEquals($extractedTypes, $tag->getTypes());
     $this->assertEquals($extractedDescription, $tag->getDescription());
 }