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