You are here

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

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetArgument() {
  $this
    ->initializeArguments();
  $definition = new InputDefinition();
  $definition
    ->addArguments(array(
    $this->foo,
  ));
  $this
    ->assertEquals($this->foo, $definition
    ->getArgument('foo'), '->getArgument() returns a InputArgument by its name');
}