You are here

public function InputArgumentTest::testSetDefaultWithArrayArgument 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::testSetDefaultWithArrayArgument()

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

File

vendor/symfony/console/Tests/Input/InputArgumentTest.php, line 106

Class

InputArgumentTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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