You are here

public function DescriptionTest::testConstruct 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::testConstruct()

File

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

Class

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

Namespace

phpDocumentor\Reflection\DocBlock

Code

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