Example #1
0
 /**
  * @param Runner $runner
  *
  * @return bool
  * @throws CommandFailedException
  */
 private function checkReturnValue(Runner $runner)
 {
     if (!$runner instanceof ReturnValue) {
         return true;
     }
     $exitCode = $runner->getReturnValue();
     if (ExitCodes::SUCCESS == $exitCode) {
         return true;
     }
     throw new CommandFailedException(ExitCodes::getDescription($exitCode));
 }
 public function testFatalErrorRange()
 {
     $this->assertEquals('Fatal error signal "9"', ExitCodes::getDescription(137));
     $this->assertEquals('Fatal error signal "57"', ExitCodes::getDescription(185));
 }