diff --git a/src/Symfony/Component/Process/Tests/ProcessTest.php b/src/Symfony/Component/Process/Tests/ProcessTest.php index e195e6bba8..da74a3db22 100644 --- a/src/Symfony/Component/Process/Tests/ProcessTest.php +++ b/src/Symfony/Component/Process/Tests/ProcessTest.php @@ -1492,7 +1492,7 @@ class ProcessTest extends TestCase $p = new Process(array(self::$phpBin, '-r', 'echo $argv[1];', $arg)); $p->run(); - $this->assertSame($arg, $p->getOutput()); + $this->assertSame((string) $arg, $p->getOutput()); } /** @@ -1505,7 +1505,7 @@ class ProcessTest extends TestCase $p->inheritEnvironmentVariables(false); $p->run(); - $this->assertSame($arg, $p->getOutput()); + $this->assertSame((string) $arg, $p->getOutput()); } public function testRawCommandLine() @@ -1535,6 +1535,9 @@ EOTXT; yield array("a!b\tc"); yield array('a\\\\"\\"'); yield array('éÉèÈàÀöä'); + yield array(null); + yield array(1); + yield array(1.1); } public function testEnvArgument()