public function testShouldEscapeArgumentsAndPrefix() {
$pb = new ProcessBuilder(array(
'arg',
));
$pb
->setPrefix('%prefix%');
$proc = $pb
->getProcess();
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$this
->assertSame('^%"prefix"^% "arg"', $proc
->getCommandLine());
}
else {
$this
->assertSame("'%prefix%' 'arg'", $proc
->getCommandLine());
}
}