public function DescriptionTest::testInlineTagParsing in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/DescriptionTest.php \phpDocumentor\Reflection\DocBlock\DescriptionTest::testInlineTagParsing()
File
- vendor/
phpdocumentor/ reflection-docblock/ tests/ phpDocumentor/ Reflection/ DocBlock/ DescriptionTest.php, line 38
Class
- DescriptionTest
- Test class for \phpDocumentor\Reflection\DocBlock\Description
Namespace
phpDocumentor\Reflection\DocBlockCode
public function testInlineTagParsing() {
$fixture = <<<LONGDESC
This is text for a {@link http://phpdoc.org/ description} that uses inline
tags.
LONGDESC;
$object = new Description($fixture);
$this
->assertSame($fixture, $object
->getContents());
$parsedContents = $object
->getParsedContents();
$this
->assertCount(3, $parsedContents);
$this
->assertSame('This is text for a ', $parsedContents[0]);
$this
->assertInstanceOf(__NAMESPACE__ . '\\Tag\\LinkTag', $parsedContents[1]);
$this
->assertSame(' that uses inline
tags.', $parsedContents[2]);
}