Commit 79a5dc19 authored by Luca Degasperi's avatar Luca Degasperi

Using escapeshellarg instead of putting backshlashes in front of spaces

Signed-off-by: 's avatarLuca Degasperi <dega.luca@gmail.com>
parent ad2540c9
......@@ -82,7 +82,8 @@ class Runner extends Task {
$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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment