Code Duplication    Length = 9-12 lines in 2 locations

tests/unit/Task/BehatTest.php 1 location

@@ 29-40 (lines=12) @@
26
        $behat->verifyInvoked('executeCommand');
27
    }
28
29
    public function testBehatCommand()
30
    {
31
        $behat = test::double('Robo\Task\Testing\Behat', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
32
33
        $task = (new \Robo\Task\Testing\Behat('behat'))
34
            ->stopOnFail()
35
            ->noInteraction()
36
            ->colors();
37
        verify($task->getCommand())->equals('behat --stop-on-failure --no-interaction --colors');
38
        $task->run();
39
        $behat->verifyInvoked('executeCommand', ['behat --stop-on-failure --no-interaction --colors']);
40
    }
41
42
}
43

tests/unit/Task/GulpTest.php 1 location

@@ 50-58 (lines=9) @@
47
        )->equals($this->adjustQuotes("gulp 'default' --tasks-simple"));
48
    }
49
50
    public function testGulpRun()
51
    {
52
        $gulp = test::double('Robo\Task\Gulp\Run', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
53
54
        $task = (new \Robo\Task\Gulp\Run('default','gulp'))->simple();
55
        verify($task->getCommand())->equals($this->adjustQuotes("gulp 'default' --tasks-simple"));
56
        $task->run();
57
        $gulp->verifyInvoked('executeCommand', [$this->adjustQuotes("gulp 'default' --tasks-simple")]);
58
    }
59
60
    public function testGulpUnusualChars()
61
    {