Code Duplication    Length = 9-11 lines in 2 locations

tests/unit/RunnerTest.php 2 locations

@@ 160-168 (lines=9) @@
157
        $this->assertTrue($result > 0);
158
    }
159
160
    public function testInvalidRoboDirectory()
161
    {
162
        $runnerWithNoRoboFile = new \Robo\Runner();
163
164
        $argv = ['placeholder', 'no-such-command', '-f', 'no-such-directory'];
165
        $result = $runnerWithNoRoboFile->execute($argv, null, null, $this->guy->capturedOutputStream());
166
167
        $this->guy->seeInOutput('Path `no-such-directory` is invalid; please provide a valid absolute path to the Robofile to load.');
168
    }
169
170
    public function testUnloadableRoboFile()
171
    {
@@ 170-180 (lines=11) @@
167
        $this->guy->seeInOutput('Path `no-such-directory` is invalid; please provide a valid absolute path to the Robofile to load.');
168
    }
169
170
    public function testUnloadableRoboFile()
171
    {
172
        $runnerWithNoRoboFile = new \Robo\Runner();
173
174
        $argv = ['placeholder', 'help', 'test:custom-event', '-f', dirname(__DIR__) . '/src/RoboFileFixture.php'];
175
        $result = $runnerWithNoRoboFile->execute($argv, null, null, $this->guy->capturedOutputStream());
176
177
        // We cannot load RoboFileFixture.php via -f / --load-from because
178
        // it has a namespace, and --load-from does not support that.
179
        $this->guy->seeInOutput('Class RoboFileFixture was not loaded');
180
    }
181
182
    public function testRunnerQuietOutput()
183
    {