From 0cb4b04fa6c9d560dfa389738f5033519e496338 Mon Sep 17 00:00:00 2001 From: TomasVotruba Date: Fri, 10 Nov 2017 23:20:54 +0100 Subject: [PATCH] add test for removeTag() --- tests/unit/DocBlockTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/DocBlockTest.php b/tests/unit/DocBlockTest.php index bb9356f..cb6ff1f 100644 --- a/tests/unit/DocBlockTest.php +++ b/tests/unit/DocBlockTest.php @@ -262,11 +262,16 @@ class DocBlockTest extends \PHPUnit_Framework_TestCase public function testRemoveTag() { $someTag = new Deprecated(); + $anotherTag = new Deprecated(); $fixture = new DocBlock('', null, [$someTag]); $this->assertCount(1, $fixture->getTags()); + $fixture->removeTag($anotherTag); + + $this->assertCount(1, $fixture->getTags()); + $fixture->removeTag($someTag); $this->assertCount(0, $fixture->getTags());