Code Duplication    Length = 11-14 lines in 2 locations

tests/unit/Task/BehatTest.php 1 location

@@ 29-42 (lines=14) @@
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
        $this->assertEquals(
38
            'behat --stop-on-failure --no-interaction --colors',
39
            $task->getCommand());
40
        $task->run();
41
        $behat->verifyInvoked('executeCommand', ['behat --stop-on-failure --no-interaction --colors']);
42
    }
43
44
}
45

tests/unit/Task/GulpTest.php 1 location

@@ 56-66 (lines=11) @@
53
        );
54
    }
55
56
    public function testGulpRun()
57
    {
58
        $gulp = test::double('Robo\Task\Gulp\Run', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
59
60
        $task = (new \Robo\Task\Gulp\Run('default','gulp'))->simple();
61
        $this->assertEquals(
62
            $this->adjustQuotes("gulp 'default' --tasks-simple"),
63
            $task->getCommand());
64
        $task->run();
65
        $gulp->verifyInvoked('executeCommand', [$this->adjustQuotes("gulp 'default' --tasks-simple")]);
66
    }
67
68
    public function testGulpUnusualChars()
69
    {