You are here

protected function InputDefinitionTest::initializeOptions 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::initializeOptions()
14 calls to InputDefinitionTest::initializeOptions()
InputDefinitionTest::testAddDuplicateOption in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
@expectedException \LogicException @expectedExceptionMessage An option named "foo" already exists.
InputDefinitionTest::testAddDuplicateShortcutOption in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
@expectedException \LogicException @expectedExceptionMessage An option with shortcut "f" already exists.
InputDefinitionTest::testAddOption in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
InputDefinitionTest::testAddOptions in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
InputDefinitionTest::testConstructorOptions in vendor/symfony/console/Tests/Input/InputDefinitionTest.php

... See full list

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

protected function initializeOptions() {
  $this->foo = new InputOption('foo', 'f');
  $this->bar = new InputOption('bar', 'b');
  $this->foo1 = new InputOption('fooBis', 'f');
  $this->foo2 = new InputOption('foo', 'p');
  $this->multi = new InputOption('multi', 'm|mm|mmm');
}