You are here

public function DocBlockTest::testDotSeperation 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::testDotSeperation()

File

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

Class

DocBlockTest
Test class for phpDocumentor\Reflection\DocBlock

Namespace

phpDocumentor\Reflection

Code

public function testDotSeperation() {
  $fixture = <<<DOCBLOCK
/**
 * This is a short description.
 * This is a long description.
 * This is a continuation of the long description.
 */
DOCBLOCK;
  $object = new DocBlock($fixture);
  $this
    ->assertEquals('This is a short description.', $object
    ->getShortDescription());
  $this
    ->assertEquals("This is a long description.\nThis is a continuation of the long " . "description.", $object
    ->getLongDescription()
    ->getContents());
}