Code Duplication    Length = 7-7 lines in 5 locations

tests/unit/Task/BehatTest.php 1 location

@@ 21-27 (lines=7) @@
18
    }
19
20
    // tests
21
    public function testBehatRun()
22
    {
23
        $behat = test::double('Robo\Task\Testing\Behat', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
24
25
        (new \Robo\Task\Testing\Behat('behat'))->run();
26
        $behat->verifyInvoked('executeCommand');
27
    }
28
29
    public function testBehatCommand()
30
    {

tests/unit/Task/DockerTest.php 4 locations

@@ 57-63 (lines=7) @@
54
        $docker->verifyInvoked('executeCommand', ['docker exec  cid pwd']);
55
    }
56
57
    public function testDockerPull()
58
    {
59
        $docker = test::double('Robo\Task\Docker\Pull', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
60
61
        (new \Robo\Task\Docker\Pull('image'))->run();
62
        $docker->verifyInvoked('executeCommand', ['docker pull image  ']);
63
    }
64
65
    public function testDockerRemove()
66
    {
@@ 65-71 (lines=7) @@
62
        $docker->verifyInvoked('executeCommand', ['docker pull image  ']);
63
    }
64
65
    public function testDockerRemove()
66
    {
67
        $docker = test::double('Robo\Task\Docker\Remove', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
68
69
        (new \Robo\Task\Docker\Remove('container'))->run();
70
        $docker->verifyInvoked('executeCommand', ['docker rm container  ']);
71
    }
72
73
    public function testDockerRun()
74
    {
@@ 84-90 (lines=7) @@
81
        $docker->verifyInvoked('executeCommand', ['docker run  -i --cidfile /tmp/docker_12345.cid cid pwd']);
82
    }
83
84
    public function testDockerStart()
85
    {
86
        $docker = test::double('Robo\Task\Docker\Start', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
87
88
        (new \Robo\Task\Docker\Start('cid'))->run();
89
        $docker->verifyInvoked('executeCommand', ['docker start  cid']);
90
    }
91
92
    public function testDockerStop()
93
    {
@@ 92-98 (lines=7) @@
89
        $docker->verifyInvoked('executeCommand', ['docker start  cid']);
90
    }
91
92
    public function testDockerStop()
93
    {
94
        $docker = test::double('Robo\Task\Docker\Stop', ['executeCommand' => null, 'getConfig' => new \Robo\Config(), 'logger' => new \Psr\Log\NullLogger()]);
95
96
        (new \Robo\Task\Docker\Stop('cid'))->run();
97
        $docker->verifyInvoked('executeCommand', ['docker stop  cid']);
98
    }
99
}
100