Merge pull request #868 from lucadegasperi/bug/phpunit

Artisan test command fix
This commit is contained in:
Taylor Otwell 2012-07-06 17:50:13 -07:00
commit 69e1ea939d
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ protected function test()
// us to flexibly run tests for any setup. // us to flexibly run tests for any setup.
$path = path('base').'phpunit.xml'; $path = path('base').'phpunit.xml';
// fix the spaced directories problem when using the command line
// strings with spaces inside should be wrapped in quotes.
$path = escapeshellarg($path)
passthru('phpunit --configuration '.$path); passthru('phpunit --configuration '.$path);
@unlink($path); @unlink($path);