Skip to content

Commit 0570fa3

Browse files
committed
Test handling of long options
Signed-off-by: Michal Čihař <[email protected]>
1 parent ad5f745 commit 0570fa3

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/Utils/CLITest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public function highlightParams()
3131
"\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n",
3232
0,
3333
),
34+
array(
35+
array('query' => 'SELECT 1'),
36+
"\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n",
37+
0,
38+
),
3439
array(
3540
array('q' => 'SELECT 1', 'f' => 'html'),
3641
'<span class="sql-reserved">SELECT</span>' . "\n" .
@@ -74,6 +79,11 @@ public function lintParams()
7479
'',
7580
0,
7681
),
82+
array(
83+
array('query' => 'SELECT 1'),
84+
'',
85+
0,
86+
),
7787
array(
7888
array('q' => 'SELECT SELECT'),
7989
'#1: An expression was expected. (near "SELECT" at position 7)' . "\n" .

0 commit comments

Comments
 (0)