You are here

public function InputArgumentTest::testSetDefaultWithRequiredArgument in Zircon Profile 8

Same name and namespace in other branches
  1. 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

InputArgumentTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testSetDefaultWithRequiredArgument() {
  $argument = new InputArgument('foo', InputArgument::REQUIRED);
  $argument
    ->setDefault('default');
}