You are here

public function InputOptionTest::testDefaultValueWithIsArrayMode 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::testDefaultValueWithIsArrayMode()

@expectedException \LogicException @expectedExceptionMessage A default value for an array option must be an array.

File

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

Class

InputOptionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

public function testDefaultValueWithIsArrayMode() {
  $option = new InputOption('foo', 'f', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY);
  $option
    ->setDefault('default');
}