public function InputDefinitionTest::testGetOptionForMultiShortcut 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::testGetOptionForMultiShortcut()
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 311
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testGetOptionForMultiShortcut() {
$this
->initializeOptions();
$definition = new InputDefinition(array(
$this->multi,
));
$this
->assertEquals($this->multi, $definition
->getOptionForShortcut('m'), '->getOptionForShortcut() returns a InputOption by its shortcut');
$this
->assertEquals($this->multi, $definition
->getOptionForShortcut('mmm'), '->getOptionForShortcut() returns a InputOption by its shortcut');
}