Fixed the spaced directory when calling php unit via the command line
Signed-off-by: Luca Degasperi <dega.luca@gmail.com>
This commit is contained in:
@@ -81,6 +81,9 @@ class Runner extends Task {
|
|||||||
// 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);
|
||||||
|
|
||||||
@unlink($path);
|
@unlink($path);
|
||||||
|
|||||||
Reference in New Issue
Block a user