Skip to content

[Process] A test case for stringifying of Process arguments #28864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/Symfony/Component/Process/Tests/ProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ public function testEscapeArgument($arg)
$p = new Process(array(self::$phpBin, '-r', 'echo $argv[1];', $arg));
$p->run();

$this->assertSame($arg, $p->getOutput());
$this->assertSame((string) $arg, $p->getOutput());
}

/**
Expand All @@ -1505,7 +1505,7 @@ public function testEscapeArgumentWhenInheritEnvDisabled($arg)
$p->inheritEnvironmentVariables(false);
$p->run();

$this->assertSame($arg, $p->getOutput());
$this->assertSame((string) $arg, $p->getOutput());
}

public function testRawCommandLine()
Expand Down Expand Up @@ -1535,6 +1535,9 @@ public function provideEscapeArgument()
yield array("a!b\tc");
yield array('a\\\\"\\"');
yield array('éÉèÈàÀöä');
yield array(null);
yield array(1);
yield array(1.1);
}

public function testEnvArgument()
Expand Down