You are here

public function InputTest::testGetInvalidArgument in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Tests/Input/InputTest.php \Symfony\Component\Console\Tests\Input\InputTest::testGetInvalidArgument()

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

File

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

Class

InputTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testGetInvalidArgument() {
  $input = new ArrayInput(array(
    'name' => 'foo',
  ), new InputDefinition(array(
    new InputArgument('name'),
    new InputArgument('bar', InputArgument::OPTIONAL, '', 'default'),
  )));
  $input
    ->getArgument('foo');
}