Code Duplication    Length = 11-12 lines in 3 locations

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());

tests/unit/ConfigurationInjectionTest.php 1 location

@@ 80-90 (lines=11) @@
77
        $this->guy->seeInOutput("b: '7'");
78
    }
79
80
    public function testSettingConfigurationFromCommandOptions()
81
    {
82
        $argv = ['placeholder', 'test:simple-list', '-D', 'config.key=value'];
83
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
84
85
        $this->guy->seeInOutput("a: '1'");
86
        $this->guy->seeInOutput("b: '2'");
87
88
        $actual = \Robo\Robo::config()->get('config.key');
89
        $this->assertEquals('value', $actual);
90
    }
91
92
    public function testWithConfigLoader()
93
    {