22
33declare (strict_types=1 );
44
5- namespace DocbookCS \Tests \Unit ;
5+ namespace DocbookCS \Tests \Feature ;
66
77use DocbookCS \Application ;
88use DocbookCS \Config \ConfigData ;
@@ -112,7 +112,7 @@ private function readStream(mixed $stream): string
112112 return stream_get_contents ($ stream ) ?: '' ;
113113 }
114114
115- #[Test] // TODO: should be feature
115+ #[Test]
116116 public function itPrintsHelpAndExitsWithZero (): void
117117 {
118118 $ app = new Application (['docbook-cs ' , '--help ' ], $ this ->stdout , $ this ->stderr );
@@ -124,7 +124,7 @@ public function itPrintsHelpAndExitsWithZero(): void
124124 self ::assertSame ('' , $ this ->readStream ($ this ->stderr ));
125125 }
126126
127- #[Test] // TODO: should be feature
127+ #[Test]
128128 public function itPrintsVersionAndExitsWithZero (): void
129129 {
130130 $ app = new Application (['docbook-cs ' , '--version ' ], $ this ->stdout , $ this ->stderr );
@@ -136,7 +136,7 @@ public function itPrintsVersionAndExitsWithZero(): void
136136 self ::assertSame ('' , $ this ->readStream ($ this ->stderr ));
137137 }
138138
139- #[Test] // TODO: should be feature
139+ #[Test]
140140 public function itReturnsErrorWhenConfigCannotBeLoaded (): void
141141 {
142142 $ app = new Application (
@@ -151,7 +151,7 @@ public function itReturnsErrorWhenConfigCannotBeLoaded(): void
151151 self ::assertStringContainsString ('Error: ' , $ this ->readStream ($ this ->stderr ));
152152 }
153153
154- #[Test] // TODO: should be feature
154+ #[Test]
155155 public function itHandlesSeparateConfigArgument (): void
156156 {
157157 $ app = new Application (
@@ -166,7 +166,7 @@ public function itHandlesSeparateConfigArgument(): void
166166 self ::assertStringContainsString ('Error: ' , $ this ->readStream ($ this ->stderr ));
167167 }
168168
169- #[Test] // TODO: should be feature
169+ #[Test]
170170 public function itAcceptsPathsWithoutCrashing (): void
171171 {
172172 $ app = new Application (
@@ -180,7 +180,7 @@ public function itAcceptsPathsWithoutCrashing(): void
180180 self ::assertContains ($ exitCode , [0 , 1 , 2 ]);
181181 }
182182
183- #[Test] // TODO: should be feature
183+ #[Test]
184184 public function itSupportsQuietFlag (): void
185185 {
186186 $ app = new Application (['docbook-cs ' , '--quiet ' ], $ this ->stdout , $ this ->stderr );
@@ -190,7 +190,7 @@ public function itSupportsQuietFlag(): void
190190 self ::assertContains ($ exitCode , [0 , 1 , 2 ]);
191191 }
192192
193- #[Test] // TODO: should be feature
193+ #[Test]
194194 public function itSupportsReportFormats (): void
195195 {
196196 foreach (['console ' , 'json ' , 'checkstyle ' ] as $ format ) {
@@ -206,7 +206,7 @@ public function itSupportsReportFormats(): void
206206 }
207207 }
208208
209- #[Test] // TODO: should be feature
209+ #[Test]
210210 public function itSupportsColorFlags (): void
211211 {
212212 foreach (['--colors ' , '--no-colors ' ] as $ flag ) {
@@ -222,7 +222,7 @@ public function itSupportsColorFlags(): void
222222 }
223223 }
224224
225- #[Test] // TODO: should be feature
225+ #[Test]
226226 public function helpShortCircuitsExecution (): void
227227 {
228228 $ app = new Application (
@@ -238,7 +238,7 @@ public function helpShortCircuitsExecution(): void
238238 self ::assertSame ('' , $ this ->readStream ($ this ->stderr ));
239239 }
240240
241- #[Test] // TODO: should be feature
241+ #[Test]
242242 public function versionShortCircuitsExecution (): void
243243 {
244244 $ app = new Application (
@@ -254,7 +254,7 @@ public function versionShortCircuitsExecution(): void
254254 self ::assertSame ('' , $ this ->readStream ($ this ->stderr ));
255255 }
256256
257- #[Test] // TODO: should be feature
257+ #[Test]
258258 public function itResolvesRelativeOverridePathsAgainstCwd (): void
259259 {
260260 $ app = new Application (
@@ -270,7 +270,7 @@ public function itResolvesRelativeOverridePathsAgainstCwd(): void
270270 self ::assertNotSame (2 , $ exitCode );
271271 }
272272
273- #[Test] // TODO: should be feature
273+ #[Test]
274274 public function itCatchesRuntimeErrorFromRunner (): void
275275 {
276276 $ app = new Application (
@@ -285,7 +285,7 @@ public function itCatchesRuntimeErrorFromRunner(): void
285285 self ::assertStringContainsString ('Runtime error: ' , $ this ->readStream ($ this ->stderr ));
286286 }
287287
288- #[Test] // TODO: should be feature
288+ #[Test]
289289 public function itSupportsSeparateReportArgument (): void
290290 {
291291 $ app = new Application (
@@ -299,7 +299,7 @@ public function itSupportsSeparateReportArgument(): void
299299 self ::assertContains ($ exitCode , [0 , 1 , 2 ]);
300300 }
301301
302- #[Test] // TODO: should be feature
302+ #[Test]
303303 public function itPassesThroughAbsoluteOverridePaths (): void
304304 {
305305 $ app = new Application (
@@ -313,7 +313,7 @@ public function itPassesThroughAbsoluteOverridePaths(): void
313313 self ::assertNotSame (2 , $ exitCode );
314314 }
315315
316- #[Test] // TODO: should be feature
316+ #[Test]
317317 public function itSuppressesProgressWhenQuietFlagIsSet (): void
318318 {
319319 $ app = new Application (
@@ -328,7 +328,7 @@ public function itSuppressesProgressWhenQuietFlagIsSet(): void
328328 self ::assertSame ('' , $ this ->readStream ($ this ->stderr ));
329329 }
330330
331- #[Test] // TODO: should be feature
331+ #[Test]
332332 public function itSuppressesProgressForStructuredReportFormats (): void
333333 {
334334 foreach (['json ' , 'checkstyle ' ] as $ format ) {
@@ -351,7 +351,7 @@ public function itSuppressesProgressForStructuredReportFormats(): void
351351 }
352352 }
353353
354- #[Test] // TODO: should be feature
354+ #[Test]
355355 public function itShowsPerformanceWhenPerfFlagIsEnabled (): void
356356 {
357357 $ app = new Application (
@@ -374,7 +374,7 @@ public function itShowsPerformanceWhenPerfFlagIsEnabled(): void
374374 self ::assertStringContainsString ('PERFORMANCE ' , $ output );
375375 }
376376
377- #[Test] // TODO: should be feature
377+ #[Test]
378378 public function itDoesNotShowPerformanceByDefault (): void
379379 {
380380 $ app = new Application (
0 commit comments