You are here

public function InputDefinitionTest::testGetOption in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Input/InputDefinitionTest.php \Symfony\Component\Console\Tests\Input\InputDefinitionTest::testGetOption()

File

vendor/symfony/console/Tests/Input/InputDefinitionTest.php, line 265

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetOption() {
  $this
    ->initializeOptions();
  $definition = new InputDefinition(array(
    $this->foo,
  ));
  $this
    ->assertEquals($this->foo, $definition
    ->getOption('foo'), '->getOption() returns a InputOption by its name');
}