Skip to content

Commit 0cb4b04

Browse files
TomasVotrubajaapio
authored andcommitted
add test for removeTag()
1 parent 474fd9e commit 0cb4b04

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/DocBlockTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,16 @@ public function testDocBlockKnowsIfItIsTheEndOfADocBlockTemplate()
262262
public function testRemoveTag()
263263
{
264264
$someTag = new Deprecated();
265+
$anotherTag = new Deprecated();
265266

266267
$fixture = new DocBlock('', null, [$someTag]);
267268

268269
$this->assertCount(1, $fixture->getTags());
269270

271+
$fixture->removeTag($anotherTag);
272+
273+
$this->assertCount(1, $fixture->getTags());
274+
270275
$fixture->removeTag($someTag);
271276

272277
$this->assertCount(0, $fixture->getTags());

0 commit comments

Comments
 (0)