public function ProcessBuilderTest::testShouldEscapeArgumentsAndPrefix in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/ProcessBuilderTest.php \Symfony\Component\Process\Tests\ProcessBuilderTest::testShouldEscapeArgumentsAndPrefix()
File
- vendor/
symfony/ process/ Tests/ ProcessBuilderTest.php, line 151
Class
Namespace
Symfony\Component\Process\TestsCode
public function testShouldEscapeArgumentsAndPrefix() {
$pb = new ProcessBuilder(array(
'arg',
));
$pb
->setPrefix('%prefix%');
$proc = $pb
->getProcess();
if ('\\' === DIRECTORY_SEPARATOR) {
$this
->assertSame('^%"prefix"^% "arg"', $proc
->getCommandLine());
}
else {
$this
->assertSame("'%prefix%' 'arg'", $proc
->getCommandLine());
}
}