Skip to content

Commit 2effa37

Browse files
committed
Test getopt() invocation as well
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent bcac15a commit 2effa37

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Utils/CLITest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ private function getCLI($getopt)
1414
return $cli;
1515
}
1616

17+
/**
18+
* Test that getopt call works
19+
*
20+
* We do mock it for other tests to return values we want.
21+
*
22+
* @return void
23+
*/
24+
public function testGetopt()
25+
{
26+
$cli = new \PhpMyAdmin\SqlParser\Utils\CLI();
27+
$this->assertEquals(
28+
$cli->getopt('', array()),
29+
array()
30+
);
31+
}
32+
1733
/**
1834
* @dataProvider highlightParams
1935
*/

0 commit comments

Comments
 (0)