You are here

public function DocBlockTest::testParseMultilineTagWithLineBreaks in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlockTest.php \phpDocumentor\Reflection\DocBlockTest::testParseMultilineTagWithLineBreaks()

@depends testConstructWithTagsOnly @covers \phpDocumentor\Reflection\DocBlock::parseTags

Return value

void

File

vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlockTest.php, line 300

Class

DocBlockTest
Test class for phpDocumentor\Reflection\DocBlock

Namespace

phpDocumentor\Reflection

Code

public function testParseMultilineTagWithLineBreaks() {
  $fixture = <<<DOCBLOCK
/**
 * @return void Content on
 *     multiple lines.
 *
 *     One more, after the break.
 */
DOCBLOCK;
  $object = new DocBlock($fixture);
  $this
    ->assertCount(1, $tags = $object
    ->getTags());

  /** @var ReturnTag $tag */
  $tag = reset($tags);
  $this
    ->assertEquals("Content on\n    multiple lines.\n\n    One more, after the break.", $tag
    ->getDescription());
}