summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/Utils/CLITest.php16
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)