public function ArrayInputTest::testToString in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/console/Tests/Input/ArrayInputTest.php \Symfony\Component\Console\Tests\Input\ArrayInputTest::testToString()
File
- vendor/
symfony/ console/ Tests/ Input/ ArrayInputTest.php, line 133
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testToString() {
$input = new ArrayInput(array(
'-f' => null,
'-b' => 'bar',
'--foo' => 'b a z',
'--lala' => null,
'test' => 'Foo',
'test2' => "A\nB'C",
));
$this
->assertEquals('-f -b=bar --foo=' . escapeshellarg('b a z') . ' --lala Foo ' . escapeshellarg("A\nB'C"), (string) $input);
}