Example #1
0
 /** @internal */
 public static function handleException(\Exception $e)
 {
     self::$checkAssertions = FALSE;
     echo self::$debugMode ? Dumper::dumpException($e) : "\nError: {$e->getMessage()}\n";
     exit($e instanceof AssertException ? Runner\Job::CODE_FAIL : Runner\Job::CODE_ERROR);
 }
Example #2
0
 /** @internal */
 public static function handleException($e)
 {
     $s = self::$debugMode ? Dumper::dumpException($e) : "\nError: {$e->getMessage()}\n";
     echo self::$useColors ? $s : Dumper::removeColors($s);
     exit($e instanceof AssertException ? Runner\Job::CODE_FAIL : Runner\Job::CODE_ERROR);
 }