You are here

public function DescriptionTest::testLiteralClosingDelimiter in Zircon Profile 8

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

File

vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/DescriptionTest.php, line 158

Class

DescriptionTest
Test class for \phpDocumentor\Reflection\DocBlock\Description

Namespace

phpDocumentor\Reflection\DocBlock

Code

public function testLiteralClosingDelimiter() {
  $fixture = <<<LONGDESC
This is text for a description with {} that is not a tag.
LONGDESC;
  $object = new Description($fixture);
  $this
    ->assertSame($fixture, $object
    ->getContents());
  $parsedContents = $object
    ->getParsedContents();
  $this
    ->assertCount(1, $parsedContents);
  $this
    ->assertSame('This is text for a description with } that is not a tag.', $parsedContents[0]);
}