Browse Source

Merge pull request #868 from lucadegasperi/bug/phpunit

Artisan test command fix
Taylor Otwell 12 years ago
parent
commit
69e1ea939d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      laravel/cli/tasks/test/runner.php

+ 4 - 0
laravel/cli/tasks/test/runner.php

@@ -80,6 +80,10 @@ class Runner extends Task {
 		// pointing to our temporary configuration file. This allows
 		// us to flexibly run tests for any setup.
 		$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);