You are here

public function ArrayInputTest::testGetParameterOption in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Input/ArrayInputTest.php \Symfony\Component\Console\Tests\Input\ArrayInputTest::testGetParameterOption()

File

vendor/symfony/console/Tests/Input/ArrayInputTest.php, line 41

Class

ArrayInputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetParameterOption() {
  $input = new ArrayInput(array(
    'name' => 'Fabien',
    '--foo' => 'bar',
  ));
  $this
    ->assertEquals('bar', $input
    ->getParameterOption('--foo'), '->getParameterOption() returns the option of specified name');
  $input = new ArrayInput(array(
    'Fabien',
    '--foo' => 'bar',
  ));
  $this
    ->assertEquals('bar', $input
    ->getParameterOption('--foo'), '->getParameterOption() returns the option of specified name');
}