Code Duplication    Length = 13-13 lines in 3 locations

tests/unit/RunnerTest.php 3 locations

@@ 369-381 (lines=13) @@
366
        $this->assertEquals('value', $actual);
367
    }
368
369
    public function testWithConfigLoader()
370
    {
371
        $loader = new YamlConfigLoader();
372
        $loader->load(dirname(__DIR__) . '/_data/robo.yml');
373
374
        \Robo\Robo::config()->extend($loader->export());
375
376
        $argv = ['placeholder', 'test:simple-list'];
377
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
378
379
        $this->guy->seeInOutput("a: '12'");
380
        $this->guy->seeInOutput("b: '13'");
381
    }
382
383
    public function testWithConfigLoaderAndCliOverride()
384
    {
@@ 383-395 (lines=13) @@
380
        $this->guy->seeInOutput("b: '13'");
381
    }
382
383
    public function testWithConfigLoaderAndCliOverride()
384
    {
385
        $loader = new YamlConfigLoader();
386
        $loader->load(dirname(__DIR__) . '/_data/robo.yml');
387
388
        \Robo\Robo::config()->extend($loader->export());
389
390
        $argv = ['placeholder', 'test:simple-list', '--b=3'];
391
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
392
393
        $this->guy->seeInOutput("a: '12'");
394
        $this->guy->seeInOutput("b: '3'");
395
    }
396
397
    public function testWithConfigProcessor()
398
    {
@@ 412-424 (lines=13) @@
409
        $this->guy->seeInOutput("b: '13'");
410
    }
411
412
    public function testCommandWithTaskConfiguration()
413
    {
414
        $loader = new YamlConfigLoader();
415
        $loader->load(dirname(__DIR__) . '/_data/robo.yml');
416
417
        \Robo\Robo::config()->extend($loader->export());
418
419
        $argv = ['placeholder', 'test:exec', '--simulate'];
420
        $result = $this->runner->execute($argv, null, null, $this->guy->capturedOutputStream());
421
422
        // `task.Exec.settings.dir` is defined in loaded robo.yml configuration file.
423
        $this->guy->seeInOutput("->dir('/some/dir')");
424
    }
425
}
426