You are here

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

@expectedException \InvalidArgumentException @expectedExceptionMessage The "bar" argument does not exist.

File

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

Class

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetInvalidArgument() {
  $this
    ->initializeArguments();
  $definition = new InputDefinition();
  $definition
    ->addArguments(array(
    $this->foo,
  ));
  $definition
    ->getArgument('bar');
}