public function InputTest::testSetInvalidArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Input/InputTest.php \Symfony\Component\Console\Tests\Input\InputTest::testSetInvalidArgument()
@expectedException \InvalidArgumentException @expectedExceptionMessage The "foo" argument does not exist.
File
- vendor/
symfony/ console/ Tests/ Input/ InputTest.php, line 79
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testSetInvalidArgument() {
$input = new ArrayInput(array(
'name' => 'foo',
), new InputDefinition(array(
new InputArgument('name'),
new InputArgument('bar', InputArgument::OPTIONAL, '', 'default'),
)));
$input
->setArgument('foo', 'bar');
}