public function InputDefinitionTest::testHasShortcut 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::testHasShortcut()
File
- vendor/
symfony/ console/ Tests/ Input/ InputDefinitionTest.php, line 294
Class
Namespace
Symfony\Component\Console\Tests\InputCode
public function testHasShortcut() {
$this
->initializeOptions();
$definition = new InputDefinition(array(
$this->foo,
));
$this
->assertTrue($definition
->hasShortcut('f'), '->hasShortcut() returns true if a InputOption exists for the given shortcut');
$this
->assertFalse($definition
->hasShortcut('b'), '->hasShortcut() returns false if a InputOption exists for the given shortcut');
}