Code Duplication    Length = 11-12 lines in 3 locations

tests/unit/RunnerTest.php 3 locations

@@ 286-297 (lines=12) @@
283
        $this->assertEquals(0, $result);
284
    }
285
286
    public function testRunnerVerbosityThresholdVeryVerbose()
287
    {
288
        $argv = ['placeholder', 'test:verbosity-threshold', '-vv'];
289
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
290
291
        $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
292
        $this->guy->seeInOutput("Running echo verbose or higher\nverbose or higher");
293
        $this->guy->seeInOutput("Running echo very verbose or higher\nvery verbose or higher");
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());
@@ 275-286 (lines=12) @@
272
        $this->assertEquals(0, $result);
273
    }
274
275
    public function testRunnerVerbosityThresholdVerbose()
276
    {
277
        $argv = ['placeholder', 'test:verbosity-threshold', '-v'];
278
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
279
280
        $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
281
        $this->guy->seeInOutput("Running echo verbose or higher\nverbose or higher");
282
        $this->guy->doNotSeeInOutput('very verbose or higher');
283
        $this->assertEquals(0, $result);
284
    }
285
286
    public function testRunnerVerbosityThresholdVeryVerbose()
287
    {
288
        $argv = ['placeholder', 'test:verbosity-threshold', '-vv'];
289
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
@@ 356-366 (lines=11) @@
353
        $this->guy->seeInOutput("b: '6'");
354
    }
355
356
    public function testSettingConfigurationFromCommandOptions()
357
    {
358
        $argv = ['placeholder', 'test:simple-list', '-D', 'config.key=value'];
359
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
360
361
        $this->guy->seeInOutput("a: '1'");
362
        $this->guy->seeInOutput("b: '2'");
363
364
        $actual = \Robo\Robo::config()->get('config.key');
365
        $this->assertEquals('value', $actual);
366
    }
367
368
    public function testWithConfigLoader()
369
    {