public function DocBlockTest::testGetTagsByNameMultipleMatch in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlockTest.php \phpDocumentor\Reflection\DocBlockTest::testGetTagsByNameMultipleMatch()
@depends testConstructWithTagsOnly @covers \phpDocumentor\Reflection\DocBlock::getTagsByName
Return value
void
File
- vendor/
phpdocumentor/ reflection-docblock/ tests/ phpDocumentor/ Reflection/ DocBlockTest.php, line 323
Class
- DocBlockTest
- Test class for phpDocumentor\Reflection\DocBlock
Namespace
phpDocumentor\ReflectionCode
public function testGetTagsByNameMultipleMatch() {
$fixture = <<<DOCBLOCK
/**
* @param string
* @param int
* @return void
*/
DOCBLOCK;
$object = new DocBlock($fixture);
$this
->assertEmpty($object
->getTagsByName('category'));
$this
->assertCount(1, $object
->getTagsByName('return'));
$this
->assertCount(2, $object
->getTagsByName('param'));
}