Skip to content

Commit

Permalink
Remove a redundant writeln accidentally left in the code after the in…
Browse files Browse the repository at this point in the history
…troduction of errorCondtion().
  • Loading branch information
greg-1-anderson committed Jul 14, 2017
1 parent 7106b9f commit 4aeb0e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Runner.php
Expand Up @@ -92,7 +92,6 @@ protected function loadRoboFile($output)
require_once $roboFilePath;

if (!class_exists($this->roboClass)) {
$output->writeln("<error>Class ".$this->roboClass." was not loaded</error>");
$this->errorCondtion("Class {$this->roboClass} was not loaded.", 'red');
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/RunnerTest.php
Expand Up @@ -171,7 +171,7 @@ public function testUnloadableRoboFile()
{
$runnerWithNoRoboFile = new \Robo\Runner();

$argv = ['placeholder', 'list', '-f', dirname(__DIR__) . '/src/RoboFileFixture.php'];
$argv = ['placeholder', 'help', 'test:custom-event', '-f', dirname(__DIR__) . '/src/RoboFileFixture.php'];
$result = $runnerWithNoRoboFile->execute($argv, null, null, $this->guy->capturedOutputStream());

// We cannot load RoboFileFixture.php via -f / --load-from because
Expand Down

0 comments on commit 4aeb0e7

Please sign in to comment.