From 678b92ef85ce0258eb9a6ac57bb26fca9480e430 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 14 May 2013 01:15:47 -0500 Subject: [PATCH] putenv in test runner. --- laravel/cli/tasks/test/runner.php | 1 + 1 file changed, 1 insertion(+) diff --git a/laravel/cli/tasks/test/runner.php b/laravel/cli/tasks/test/runner.php index eb1a8625..7b18b845 100644 --- a/laravel/cli/tasks/test/runner.php +++ b/laravel/cli/tasks/test/runner.php @@ -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);