public function InputDefinitionTest::testAddDuplicateOption 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::testAddDuplicateOption()
@expectedException \LogicException @expectedExceptionMessage An option named "foo" already exists.
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 243
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testAddDuplicateOption() {
$this
->initializeOptions();
$definition = new InputDefinition();
$definition
->addOption($this->foo);
$definition
->addOption($this->foo2);
}