8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f433f6b commit cf9039eCopy full SHA for cf9039e
src/Symfony/Component/Console/Tests/Input/InputOptionTest.php
@@ -35,6 +35,10 @@ public function testConstructor()
35
$this->assertEquals('f', $option->getShortcut(), '__construct() can take a shortcut as its second argument');
36
$option = new InputOption('foo', '-f');
37
$this->assertEquals('f', $option->getShortcut(), '__construct() removes the leading - of the shortcut');
38
+ $option = new InputOption('foo');
39
+ $this->assertNull($option->getShortcut(), '__construct() makes the shortcut null by default');
40
+ $option = new InputOption('foo', '-');
41
+ $this->assertNull($option->getShortcut(), '__construct() makes the shortcut null if a single dash is specified as its name');
42
43
// mode argument
44
$option = new InputOption('foo', 'f');
0 commit comments