File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,33 @@ public function testWordwrapsAroundTheGivenAmountOfCharacters()
172
172
$ this ->assertSame ($ expected , $ fixture ->getDocComment ($ docBlock ));
173
173
}
174
174
175
+ /**
176
+ * @covers ::__construct
177
+ * @covers ::getDocComment
178
+ */
179
+ public function testNoExtraSpacesAfterTagRemoval ()
180
+ {
181
+ $ expected = <<<'DOCCOMMENT'
182
+ /**
183
+ * @unknown-tag
184
+ */
185
+ DOCCOMMENT;
186
+
187
+ $ expectedAfterRemove = <<<'DOCCOMMENT_AFTER_REMOVE'
188
+ /**
189
+ */
190
+ DOCCOMMENT_AFTER_REMOVE;
191
+
192
+ $ fixture = new Serializer (0 , '' , true , 15 );
193
+ $ genericTag = new DocBlock \Tags \Generic ('unknown-tag ' );
194
+
195
+ $ docBlock = new DocBlock ('' ,null , [$ genericTag ]);
196
+ $ this ->assertSame ($ expected , $ fixture ->getDocComment ($ docBlock ));
197
+
198
+ $ docBlock ->removeTag ($ genericTag );
199
+ $ this ->assertSame ($ expectedAfterRemove , $ fixture ->getDocComment ($ docBlock ));
200
+ }
201
+
175
202
/**
176
203
* @covers ::__construct
177
204
* @expectedException \InvalidArgumentException
You can’t perform that action at this time.
0 commit comments