You are here

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

@covers \phpDocumentor\Reflection\DocBlock::__construct

Return value

void

File

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

Class

DocBlockTest
Test class for phpDocumentor\Reflection\DocBlock

Namespace

phpDocumentor\Reflection

Code

public function testConstructFromReflector() {
  $object = new DocBlock(new \ReflectionClass($this));
  $this
    ->assertEquals('Test class for phpDocumentor\\Reflection\\DocBlock', $object
    ->getShortDescription());
  $this
    ->assertEquals('', $object
    ->getLongDescription()
    ->getContents());
  $this
    ->assertCount(4, $object
    ->getTags());
  $this
    ->assertTrue($object
    ->hasTag('author'));
  $this
    ->assertTrue($object
    ->hasTag('copyright'));
  $this
    ->assertTrue($object
    ->hasTag('license'));
  $this
    ->assertTrue($object
    ->hasTag('link'));
  $this
    ->assertFalse($object
    ->hasTag('category'));
}