Add a test case for stringifying of Process arguments
This commit is contained in:
parent
f89ef42ba4
commit
0d543428ad
@ -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()
|
||||
|
Reference in New Issue
Block a user