Skip to content

Commit 7f6d565

Browse files
committed
Add test for text formatter
Issue #110 Signed-off-by: Michal Čihař <[email protected]>
1 parent 78ccdb2 commit 7f6d565

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Utils/CLITest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public function highlightParams()
3636
"\x1b[35mSELECT\n \x1b[92m1\x1b[0m\n",
3737
0,
3838
),
39+
array(
40+
array('q' => 'SELECT /* comment */ 1 /* other */', 'f' => 'text'),
41+
"SELECT\n /* comment */ 1 /* other */\n",
42+
0,
43+
),
3944
array(
4045
array('q' => 'SELECT 1', 'f' => 'foo'),
4146
"ERROR: Invalid value for format!\n",

0 commit comments

Comments
 (0)