You are here

public function DocBlockTest::testConstructOneLiner in Zircon Profile 8.0

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

@covers \phpDocumentor\Reflection\DocBlock::cleanInput

Return value

void

File

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

Class

DocBlockTest
Test class for phpDocumentor\Reflection\DocBlock

Namespace

phpDocumentor\Reflection

Code

public function testConstructOneLiner() {
  $fixture = '/** Short description and nothing more. */';
  $object = new DocBlock($fixture);
  $this
    ->assertEquals('Short description and nothing more.', $object
    ->getShortDescription());
  $this
    ->assertEquals('', $object
    ->getLongDescription()
    ->getContents());
  $this
    ->assertCount(0, $object
    ->getTags());
}