Code Duplication    Length = 11-12 lines in 3 locations

tests/unit/ConfigurationInjectionTest.php 1 location

@@ 68-78 (lines=11) @@
65
        $this->guy->seeInOutput("b: '6'");
66
    }
67
68
    public function testSettingConfigurationFromCommandOptions()
69
    {
70
        $argv = ['placeholder', 'test:simple-list', '-D', 'config.key=value'];
71
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
72
73
        $this->guy->seeInOutput("a: '1'");
74
        $this->guy->seeInOutput("b: '2'");
75
76
        $actual = \Robo\Robo::config()->get('config.key');
77
        $this->assertEquals('value', $actual);
78
    }
79
80
    public function testWithConfigLoader()
81
    {

tests/unit/RunnerTest.php 2 locations

@@ 230-241 (lines=12) @@
227
        $this->assertEquals(0, $result);
228
    }
229
230
    public function testRunnerVerbosityThresholdVerbose()
231
    {
232
        $argv = ['placeholder', 'test:verbosity-threshold', '-v'];
233
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
234
235
        $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
236
        $this->guy->seeInOutput("Running echo verbose or higher\nverbose or higher");
237
        $this->guy->doNotSeeInOutput('very verbose or higher');
238
        $this->assertEquals(0, $result);
239
    }
240
241
    public function testRunnerVerbosityThresholdVeryVerbose()
242
    {
243
        $argv = ['placeholder', 'test:verbosity-threshold', '-vv'];
244
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
@@ 241-252 (lines=12) @@
238
        $this->assertEquals(0, $result);
239
    }
240
241
    public function testRunnerVerbosityThresholdVeryVerbose()
242
    {
243
        $argv = ['placeholder', 'test:verbosity-threshold', '-vv'];
244
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
245
246
        $this->guy->seeInOutput('This command will print more information at higher verbosity levels');
247
        $this->guy->seeInOutput("Running echo verbose or higher\nverbose or higher");
248
        $this->guy->seeInOutput("Running echo very verbose or higher\nvery verbose or higher");
249
        $this->assertEquals(0, $result);
250
    }
251
252
    public function testRunnerDebugOutput()
253
    {
254
        $argv = ['placeholder', 'test:verbosity', '-vvv'];
255
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());