public function InputArgumentTest::testSetDefaultWithRequiredArgument in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Input/InputArgumentTest.php \Symfony\Component\Console\Tests\Input\InputArgumentTest::testSetDefaultWithRequiredArgument()
@expectedException \LogicException @expectedExceptionMessage Cannot set a default value except for InputArgument::OPTIONAL mode.
File
- vendor/
symfony/ console/ Tests/ Input/ InputArgumentTest.php, line 96
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testSetDefaultWithRequiredArgument() {
$argument = new InputArgument('foo', InputArgument::REQUIRED);
$argument
->setDefault('default');
}