Code Duplication    Length = 9-11 lines in 2 locations

tests/unit/RunnerTest.php 2 locations

@@ 208-216 (lines=9) @@
205
        $this->assertTrue($result > 0);
206
    }
207
208
    public function testInvalidRoboDirectory()
209
    {
210
        $runnerWithNoRoboFile = new \Robo\Runner();
211
212
        $argv = ['placeholder', 'list', '-f', 'no-such-directory'];
213
        $result = $runnerWithNoRoboFile->execute($argv, null, null, $this->guy->capturedOutputStream());
214
215
        $this->guy->seeInOutput('Path `no-such-directory` is invalid; please provide a valid absolute path to the Robofile to load.');
216
    }
217
218
    public function testUnloadableRoboFile()
219
    {
@@ 218-228 (lines=11) @@
215
        $this->guy->seeInOutput('Path `no-such-directory` is invalid; please provide a valid absolute path to the Robofile to load.');
216
    }
217
218
    public function testUnloadableRoboFile()
219
    {
220
        $runnerWithNoRoboFile = new \Robo\Runner();
221
222
        $argv = ['placeholder', 'list', '-f', dirname(__DIR__) . '/src/RoboFileFixture.php'];
223
        $result = $runnerWithNoRoboFile->execute($argv, null, null, $this->guy->capturedOutputStream());
224
225
        // We cannot load RoboFileFixture.php via -f / --load-from because
226
        // it has a namespace, and --load-from does not support that.
227
        $this->guy->seeInOutput('Class RoboFileFixture was not loaded');
228
    }
229
230
    public function testRunnerQuietOutput()
231
    {