public function InputDefinitionTest::testAddOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Tests/Input/InputDefinitionTest.php \Symfony\Component\Console\Tests\Input\InputDefinitionTest::testAddOptions()
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 218
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testAddOptions() {
$this
->initializeOptions();
$definition = new InputDefinition(array(
$this->foo,
));
$this
->assertEquals(array(
'foo' => $this->foo,
), $definition
->getOptions(), '->addOptions() adds an array of InputOption objects');
$definition
->addOptions(array(
$this->bar,
));
$this
->assertEquals(array(
'foo' => $this->foo,
'bar' => $this->bar,
), $definition
->getOptions(), '->addOptions() does not clear existing InputOption objects');
}