You are here

public function InputDefinitionTest::testGetOptionForShortcut in Zircon Profile 8

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

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetOptionForShortcut() {
  $this
    ->initializeOptions();
  $definition = new InputDefinition(array(
    $this->foo,
  ));
  $this
    ->assertEquals($this->foo, $definition
    ->getOptionForShortcut('f'), '->getOptionForShortcut() returns a InputOption by its shortcut');
}