You are here

public function InputDefinitionTest::testGetOptionForMultiShortcut 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::testGetOptionForMultiShortcut()

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetOptionForMultiShortcut() {
  $this
    ->initializeOptions();
  $definition = new InputDefinition(array(
    $this->multi,
  ));
  $this
    ->assertEquals($this->multi, $definition
    ->getOptionForShortcut('m'), '->getOptionForShortcut() returns a InputOption by its shortcut');
  $this
    ->assertEquals($this->multi, $definition
    ->getOptionForShortcut('mmm'), '->getOptionForShortcut() returns a InputOption by its shortcut');
}