Code Duplication    Length = 9-11 lines in 2 locations

tests/integration/RunnerTest.php 2 locations

@@ 192-200 (lines=9) @@
189
        $this->assertTrue($result > 0);
190
    }
191
192
    public function testInvalidRoboDirectory()
193
    {
194
        $runnerWithNoRoboFile = new \Robo\Runner();
195
196
        $argv = ['placeholder', 'no-such-command', '-f', 'no-such-directory'];
197
        $result = $runnerWithNoRoboFile->execute($argv, null, null, $this->capturedOutputStream());
198
199
        $this->assertOutputContains('Path `no-such-directory` is invalid; please provide a valid absolute path to the Robofile to load.');
200
    }
201
202
    public function testUnloadableRoboFile()
203
    {
@@ 202-212 (lines=11) @@
199
        $this->assertOutputContains('Path `no-such-directory` is invalid; please provide a valid absolute path to the Robofile to load.');
200
    }
201
202
    public function testUnloadableRoboFile()
203
    {
204
        $runnerWithNoRoboFile = new \Robo\Runner();
205
206
        $argv = ['placeholder', 'help', 'test:custom-event', '-f', dirname(__DIR__) . '/src/RoboFileFixture.php'];
207
        $result = $runnerWithNoRoboFile->execute($argv, null, null, $this->capturedOutputStream());
208
209
        // We cannot load RoboFileFixture.php via -f / --load-from because
210
        // it has a namespace, and --load-from does not support that.
211
        $this->assertOutputContains('Class RoboFileFixture was not loaded');
212
    }
213
214
    public function testRunnerQuietOutput()
215
    {