public function InputOptionTest::testIsArray in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Input/InputOptionTest.php \Symfony\Component\Console\Tests\Input\InputOptionTest::testIsArray()
File
- vendor/
symfony/ console/ Tests/ Input/ InputOptionTest.php, line 117
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testIsArray() {
$option = new InputOption('foo', null, InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY);
$this
->assertTrue($option
->isArray(), '->isArray() returns true if the option can be an array');
$option = new InputOption('foo', null, InputOption::VALUE_NONE);
$this
->assertFalse($option
->isArray(), '->isArray() returns false if the option can not be an array');
}