Browse Source

Fixed the spaced directory when calling php unit via the command line

Signed-off-by: Luca Degasperi <dega.luca@gmail.com>
Luca Degasperi 12 years ago
parent
commit
ad2540c979
1 changed files with 3 additions and 0 deletions
  1. 3 0
      laravel/cli/tasks/test/runner.php

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

@@ -80,6 +80,9 @@ class Runner extends Task {
 		// pointing to our temporary configuration file. This allows
 		// pointing to our temporary configuration file. This allows
 		// 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
+		$path = str_replace(" ", "\\ ", $path);
 
 
 		passthru('phpunit --configuration '.$path);
 		passthru('phpunit --configuration '.$path);