You are here

public function DescriptionTest::testLiteralOpeningDelimiter in Zircon Profile 8.0

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

File

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

Class

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

Namespace

phpDocumentor\Reflection\DocBlock

Code

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