You are here

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

@expectedException \LogicException @expectedExceptionMessage An argument with name "foo" already exists.

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testArgumentsMustHaveDifferentNames() {
  $this
    ->initializeArguments();
  $definition = new InputDefinition();
  $definition
    ->addArgument($this->foo);
  $definition
    ->addArgument($this->foo1);
}