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