diff options
-rw-r--r-- | tests/Utils/CLITest.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/Utils/CLITest.php b/tests/Utils/CLITest.php index 435a2c8..fb4ee23 100644 --- a/tests/Utils/CLITest.php +++ b/tests/Utils/CLITest.php @@ -15,6 +15,22 @@ class CLITest extends TestCase } /** + * Test that getopt call works + * + * We do mock it for other tests to return values we want. + * + * @return void + */ + public function testGetopt() + { + $cli = new \PhpMyAdmin\SqlParser\Utils\CLI(); + $this->assertEquals( + $cli->getopt('', array()), + array() + ); + } + + /** * @dataProvider highlightParams */ public function testRunHighlight($getopt, $output, $result) |