File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 13
13
namespace phpDocumentor \Reflection ;
14
14
15
15
use Mockery as m ;
16
+ use phpDocumentor \Reflection \DocBlock \Tags \Deprecated ;
17
+ use phpDocumentor \Reflection \DocBlock \Tags \See ;
16
18
use phpDocumentor \Reflection \Types \Context ;
17
19
18
20
/**
@@ -249,4 +251,24 @@ public function testDocBlockKnowsIfItIsTheEndOfADocBlockTemplate()
249
251
250
252
$ this ->assertTrue ($ fixture ->isTemplateEnd ());
251
253
}
254
+
255
+
256
+ /**
257
+ * @covers ::__construct
258
+ * @covers ::removeTag
259
+ *
260
+ * @uses \phpDocumentor\Reflection\DocBlock\Tags\Deprecated
261
+ */
262
+ public function testRemoveTag ()
263
+ {
264
+ $ someTag = new Deprecated ();
265
+
266
+ $ fixture = new DocBlock ('' , null , [$ someTag ]);
267
+
268
+ $ this ->assertCount (1 , $ fixture ->getTags ());
269
+
270
+ $ fixture ->removeTag ($ someTag );
271
+
272
+ $ this ->assertCount (0 , $ fixture ->getTags ());
273
+ }
252
274
}
You can’t perform that action at this time.
0 commit comments