putenv in test runner.

This commit is contained in:
Taylor Otwell 2013-05-14 01:15:47 -05:00
parent 9871281b34
commit 678b92ef85
1 changed files with 1 additions and 0 deletions

View File

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