public function ArrayInputTest::testGetParameterOption in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Console\Tests\InputCode
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');
}