You are here

protected function InputDefinitionTest::initializeArguments 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::initializeArguments()
12 calls to InputDefinitionTest::initializeArguments()
InputDefinitionTest::testAddArgument in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
InputDefinitionTest::testAddArguments in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
InputDefinitionTest::testArgumentsMustHaveDifferentNames in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
@expectedException \LogicException @expectedExceptionMessage An argument with name "foo" already exists.
InputDefinitionTest::testArrayArgumentHasToBeLast in vendor/symfony/console/Tests/Input/InputDefinitionTest.php
@expectedException \LogicException @expectedExceptionMessage Cannot add an argument after an array argument.
InputDefinitionTest::testConstructorArguments in vendor/symfony/console/Tests/Input/InputDefinitionTest.php

... See full list

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

protected function initializeArguments() {
  $this->foo = new InputArgument('foo');
  $this->bar = new InputArgument('bar');
  $this->foo1 = new InputArgument('foo');
  $this->foo2 = new InputArgument('foo2', InputArgument::REQUIRED);
}