You are here

public function InputOptionTest::testDefaultValueWithValueNoneMode in Zircon Profile 8.0

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

@expectedException \LogicException @expectedExceptionMessage Cannot set a default value when using InputOption::VALUE_NONE mode.

File

vendor/symfony/console/Tests/Input/InputOptionTest.php, line 166

Class

InputOptionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testDefaultValueWithValueNoneMode() {
  $option = new InputOption('foo', 'f', InputOption::VALUE_NONE);
  $option
    ->setDefault('default');
}