Code Duplication    Length = 14-14 lines in 4 locations

tests/unit/RunnerTest.php 4 locations

@@ 230-243 (lines=14) @@
227
        $this->guy->seeInOutput('Class RoboFileFixture was not loaded');
228
    }
229
230
    public function testRunnerQuietOutput()
231
    {
232
        $argv = ['placeholder', 'test:verbosity', '--quiet'];
233
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
234
235
        $this->guy->doNotSeeInOutput('This command will print more information at higher verbosity levels');
236
        $this->guy->doNotSeeInOutput('This is a verbose message (-v).');
237
        $this->guy->doNotSeeInOutput('This is a very verbose message (-vv).');
238
        $this->guy->doNotSeeInOutput('This is a debug message (-vvv).');
239
        $this->guy->doNotSeeInOutput(' [warning] This is a warning log message.');
240
        $this->guy->doNotSeeInOutput(' [notice] This is a notice log message.');
241
        $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.');
242
        $this->assertEquals(0, $result);
243
    }
244
245
    public function testRunnerVerboseOutput()
246
    {
@@ 245-258 (lines=14) @@
242
        $this->assertEquals(0, $result);
243
    }
244
245
    public function testRunnerVerboseOutput()
246
    {
247
        $argv = ['placeholder', 'test:verbosity', '-v'];
248
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
249
250
        $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
251
        $this->guy->seeInOutput('This is a verbose message (-v).');
252
        $this->guy->doNotSeeInOutput('This is a very verbose message (-vv).');
253
        $this->guy->doNotSeeInOutput('This is a debug message (-vvv).');
254
        $this->guy->seeInOutput(' [warning] This is a warning log message.');
255
        $this->guy->seeInOutput(' [notice] This is a notice log message.');
256
        $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.');
257
        $this->assertEquals(0, $result);
258
    }
259
260
    public function testRunnerVeryVerboseOutput()
261
    {
@@ 260-273 (lines=14) @@
257
        $this->assertEquals(0, $result);
258
    }
259
260
    public function testRunnerVeryVerboseOutput()
261
    {
262
        $argv = ['placeholder', 'test:verbosity', '-vv'];
263
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
264
265
        $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
266
        $this->guy->seeInOutput('This is a verbose message (-v).');
267
        $this->guy->seeInOutput('This is a very verbose message (-vv).');
268
        $this->guy->doNotSeeInOutput('This is a debug message (-vvv).');
269
        $this->guy->seeInOutput(' [warning] This is a warning log message.');
270
        $this->guy->seeInOutput(' [notice] This is a notice log message.');
271
        $this->guy->doNotSeeInOutput(' [debug] This is a debug log message.');
272
        $this->assertEquals(0, $result);
273
    }
274
275
    public function testRunnerVerbosityThresholdVerbose()
276
    {
@@ 297-310 (lines=14) @@
294
        $this->assertEquals(0, $result);
295
    }
296
297
    public function testRunnerDebugOutput()
298
    {
299
        $argv = ['placeholder', 'test:verbosity', '-vvv'];
300
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
301
302
        $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
303
        $this->guy->seeInOutput('This is a verbose message (-v).');
304
        $this->guy->seeInOutput('This is a very verbose message (-vv).');
305
        $this->guy->seeInOutput('This is a debug message (-vvv).');
306
        $this->guy->seeInOutput(' [warning] This is a warning log message.');
307
        $this->guy->seeInOutput(' [notice] This is a notice log message.');
308
        $this->guy->seeInOutput(' [debug] This is a debug log message.');
309
        $this->assertEquals(0, $result);
310
    }
311
312
    public function testNoOptionsNoConfiguration()
313
    {