You are here

public function InputDefinitionTest::testHasShortcut in Zircon Profile 8

Same name and namespace in other branches
  1. 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

InputDefinitionTest

Namespace

Symfony\Component\Console\Tests\Input

Code

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');
}