diff --git a/laravel/cli/tasks/test/runner.php b/laravel/cli/tasks/test/runner.php index e13a42d9..953c9857 100644 --- a/laravel/cli/tasks/test/runner.php +++ b/laravel/cli/tasks/test/runner.php @@ -82,7 +82,8 @@ protected function test() $path = path('base').'phpunit.xml'; // fix the spaced directories problem when using the command line - $path = str_replace(" ", "\\ ", $path); + // strings with spaces inside should be wrapped in quotes. + $path = escapeshellarg($path) passthru('phpunit --configuration '.$path);