You are here

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

@expectedException \LogicException @expectedExceptionMessage An option with shortcut "f" already exists.

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testAddDuplicateShortcutOption() {
  $this
    ->initializeOptions();
  $definition = new InputDefinition();
  $definition
    ->addOption($this->foo);
  $definition
    ->addOption($this->foo1);
}