Skip to content

Commit

Permalink
Merge pull request #388 from TysonAndre/log-path-of-fatal-error
Browse files Browse the repository at this point in the history
Log the path of the test encountering a fatal error
  • Loading branch information
andreasschroth committed May 31, 2019
2 parents 6c4438e + f03b066 commit 8e7f703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runners/PHPUnit/Runner.php
Expand Up @@ -119,7 +119,7 @@ private function testIsStillRunning(ExecutableTest $test): bool
if (!$errorOutput) {
$errorOutput = $test->getStdout();
}
throw new \Exception($errorOutput);
throw new \Exception(sprintf("Fatal error in %s:\n%s", $test->getPath(), $errorOutput));
}
$this->printer->printFeedback($test);
if ($this->hasCoverage()) {
Expand Down

0 comments on commit 8e7f703

Please sign in to comment.