Browse Source

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

Franz Liedke 12 years ago
parent
commit
08fce4fbf8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      laravel/cli/tasks/test/runner.php

+ 4 - 1
laravel/cli/tasks/test/runner.php

@@ -87,9 +87,12 @@ class Runner extends Task {
 		// 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);
 	}
 
 	/**