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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy