Code Duplication    Length = 14-14 lines in 4 locations

tests/unit/RunnerTest.php 4 locations

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