mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 10:07:12 +00:00
add test for removeTag()
This commit is contained in:
committed by
Jaap van Otterdijk
parent
474fd9e29a
commit
0cb4b04fa6
@@ -262,11 +262,16 @@ class DocBlockTest extends \PHPUnit_Framework_TestCase
|
|||||||
public function testRemoveTag()
|
public function testRemoveTag()
|
||||||
{
|
{
|
||||||
$someTag = new Deprecated();
|
$someTag = new Deprecated();
|
||||||
|
$anotherTag = new Deprecated();
|
||||||
|
|
||||||
$fixture = new DocBlock('', null, [$someTag]);
|
$fixture = new DocBlock('', null, [$someTag]);
|
||||||
|
|
||||||
$this->assertCount(1, $fixture->getTags());
|
$this->assertCount(1, $fixture->getTags());
|
||||||
|
|
||||||
|
$fixture->removeTag($anotherTag);
|
||||||
|
|
||||||
|
$this->assertCount(1, $fixture->getTags());
|
||||||
|
|
||||||
$fixture->removeTag($someTag);
|
$fixture->removeTag($someTag);
|
||||||
|
|
||||||
$this->assertCount(0, $fixture->getTags());
|
$this->assertCount(0, $fixture->getTags());
|
||||||
|
|||||||
Reference in New Issue
Block a user