After running tests, exit with PHPUnit's exit status.

This commit is contained in:
Franz Liedke 2012-07-14 11:46:58 +02:00
parent e7f665b55d
commit 08fce4fbf8
1 changed files with 4 additions and 1 deletions

View File

@ -87,9 +87,12 @@ protected function test()
// strings with spaces inside should be wrapped in quotes.
$path = escapeshellarg($path);
passthru('phpunit --configuration '.$path);
passthru('phpunit --configuration '.$path, $status);
@unlink($path);
// Pass through the exit status
exit($status);
}
/**