Skip to content

Commit a404a55

Browse files
committed
tests: Check the case when CLI option is null
1 parent 18630e2 commit a404a55

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/system/CLI/CLITest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ public function testParseCommandMultipleOptions(): void
539539

540540
$this->assertSame(['parm' => 'pvalue', 'p2' => null, 'p3' => 'value 3'], CLI::getOptions());
541541
$this->assertSame('pvalue', CLI::getOption('parm'));
542+
$this->assertTrue(CLI::getOption('p2'));
542543
$this->assertSame('-parm pvalue -p2 -p3 "value 3" ', CLI::getOptionString());
543544
$this->assertSame('-parm pvalue -p2 -p3 "value 3"', CLI::getOptionString(false, true));
544545
$this->assertSame('--parm pvalue --p2 --p3 "value 3" ', CLI::getOptionString(true));

0 commit comments

Comments
 (0)