Code Duplication    Length = 11-11 lines in 2 locations

tests/unit/RunnerTest.php 2 locations

@@ 333-343 (lines=11) @@
330
        $this->guy->seeInOutput("b: '3'");
331
    }
332
333
    public function testWithConfigurationButNoOptions()
334
    {
335
        \Robo\Robo::config()->set('command.test.simple-list.options.a', '4');
336
        \Robo\Robo::config()->set('command.test.simple-list.options.b', '5');
337
338
        $argv = ['placeholder', 'test:simple-list'];
339
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
340
341
        $this->guy->seeInOutput("a: '4'");
342
        $this->guy->seeInOutput("b: '5'");
343
    }
344
345
    public function testWithConfigurationAndOptionOverride()
346
    {
@@ 345-355 (lines=11) @@
342
        $this->guy->seeInOutput("b: '5'");
343
    }
344
345
    public function testWithConfigurationAndOptionOverride()
346
    {
347
        \Robo\Robo::config()->set('command.test.simple-list.options.a', '4');
348
        \Robo\Robo::config()->set('command.test.simple-list.options.b', '5');
349
350
        $argv = ['placeholder', 'test:simple-list', '--b=6'];
351
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
352
353
        $this->guy->seeInOutput("a: '4'");
354
        $this->guy->seeInOutput("b: '6'");
355
    }
356
357
    public function testSettingConfigurationFromCommandOptions()
358
    {