diff --git a/phpunit b/phpunit index 0f5aab29b1..4aa5dbd302 100755 --- a/phpunit +++ b/phpunit @@ -1,7 +1,10 @@ #!/usr/bin/env php $c/phpunit.stdout 2> $c/phpunit.stderr", array(), $pipes)) { + if ($proc = proc_open(sprintf($cmd, $c, " > $c/phpunit.stdout 2> $c/phpunit.stderr"), array(), $pipes)) { $runningProcs[$component] = $proc; } else { $exit = 1; @@ -137,7 +142,7 @@ if (isset($argv[1]) && 'symfony' === $argv[1]) { // Run regular phpunit in a subprocess $errFile = tempnam(sys_get_temp_dir(), 'phpunit.stderr.'); - if ($proc = proc_open(sprintf($cmd, '').' 2> '.escapeshellarg($errFile), array(1 => array('pipe', 'w')), $pipes)) { + if ($proc = proc_open(sprintf($cmd, '', ' 2> '.ProcessUtils::escapeArgument($errFile)), array(1 => array('pipe', 'w')), $pipes)) { stream_copy_to_stream($pipes[1], STDOUT); fclose($pipes[1]); $exit = proc_close($proc);