File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Symfony/Cmf/Component/Testing/Phpunit Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 14
14
15
15
use Symfony \Component \Process \ProcessBuilder ;
16
16
use Symfony \Component \Process \Process ;
17
+ use Symfony \Component \Process \ProcessUtils ;
17
18
use Symfony \Component \Process \PhpExecutableFinder ;
18
19
use Symfony \Component \HttpKernel \Kernel ;
19
20
use Doctrine \Common \DataFixtures \Purger ;
@@ -30,7 +31,10 @@ public function __construct($processBuilder = null)
30
31
$ phpExecutableFinder = new PhpExecutableFinder ();
31
32
$ phpExecutable = $ phpExecutableFinder ->find ();
32
33
if (false !== $ phpExecutable ) {
33
- $ this ->processBuilder ->setPrefix (array ($ phpExecutable , __DIR__ .'/../../../../../../bin/console ' ));
34
+ $ this ->processBuilder ->setPrefix (
35
+ ProcessUtils::escapeArgument ($ phpExecutable ).' ' .
36
+ ProcessUtils::escapeArgument (__DIR__ .'/../../../../../../bin/console ' )
37
+ );
34
38
} else {
35
39
throw new \RuntimeException ('No PHP executable found on the current system. ' );
36
40
}
You can’t perform that action at this time.
0 commit comments