8000 Adding test case for Checking false as a $shortcut in InputOption.php · symfony/symfony@033c428 · GitHub
[go: up one dir, main page]

Skip to content

Commit 033c428

Browse files
Adding test case for Checking false as a $shortcut in InputOption.php
Adding test case for [Console] Allow false as a $shortcut in InputOption.php
1 parent 57ce3bb commit 033c428

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Component/Console/Tests/Input/InputOptionTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public function testShortcut()
6969
$this->assertEquals('0|z', $option->getShortcut(), '-0 is an acceptable shortcut value when embedded in an array');
7070
$option = new InputOption('foo', '0|z');
7171
$this->assertEquals('0|z', $option->getShortcut(), '-0 is an acceptable shortcut value when embedded in a string-list');
72+
$option = new InputOption('foo', false);
73+
$this->assertNull($option->getShortcut(), '__construct() makes the shortcut null when given a false as value');
7274
}
7375

7476
public function testModes()

0 commit comments

Comments
 (0)
0