You are here

public function InputOptionTest::testArrayModeWithoutValue in Zircon Profile 8

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

@expectedException \InvalidArgumentException @expectedExceptionMessage Impossible to have an option mode VALUE_IS_ARRAY if the option does not accept a value.

File

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

Class

InputOptionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testArrayModeWithoutValue() {
  new InputOption('foo', 'f', InputOption::VALUE_IS_ARRAY);
}