Skip to content

Commit 678b92e

Browse files
committed
putenv in test runner.
1 parent 9871281 commit 678b92e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

laravel/cli/tasks/test/runner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ protected function test()
8888
// strings with spaces inside should be wrapped in quotes.
8989
$esc_path = escapeshellarg($path);
9090

91+
putenv('LARAVEL_ENV='.Request::env());
9192
passthru('LARAVEL_ENV='.Request::env().' phpunit --configuration '.$esc_path, $status);
9293

9394
@unlink($path);

0 commit comments

Comments
 (0)