You are here

public function ArrayInputTest::testToString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 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

ArrayInputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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);
}