Browse Source

putenv in test runner.

Taylor Otwell 11 years ago
parent
commit
678b92ef85
1 changed files with 1 additions and 0 deletions
  1. 1 0
      laravel/cli/tasks/test/runner.php

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

@@ -88,6 +88,7 @@ class Runner extends Task {
 		// strings with spaces inside should be wrapped in quotes.
 		// strings with spaces inside should be wrapped in quotes.
 		$esc_path = escapeshellarg($path);
 		$esc_path = escapeshellarg($path);
 
 
+		putenv('LARAVEL_ENV='.Request::env());
 		passthru('LARAVEL_ENV='.Request::env().' phpunit --configuration '.$esc_path, $status);
 		passthru('LARAVEL_ENV='.Request::env().' phpunit --configuration '.$esc_path, $status);
 
 
 		@unlink($path);
 		@unlink($path);