You are here

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

@depends testConstructFromReflector @covers \phpDocumentor\Reflection\DocBlock::getTagsByName

Return value

void

File

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

Class

DocBlockTest
Test class for phpDocumentor\Reflection\DocBlock

Namespace

phpDocumentor\Reflection

Code

public function testGetTagsByNameZeroAndOneMatch() {
  $object = new DocBlock(new \ReflectionClass($this));
  $this
    ->assertEmpty($object
    ->getTagsByName('category'));
  $this
    ->assertCount(1, $object
    ->getTagsByName('author'));
}