Skip to content

Commit 9096eea

Browse files
committed
Test for invalid output format
Signed-off-by: Michal Čihař <[email protected]>
1 parent 0570fa3 commit 9096eea

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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 1', 'f' => 'foo'),
41+
"ERROR: Invalid value for format!\n",
42+
1,
43+
),
3944
array(
4045
array('q' => 'SELECT 1', 'f' => 'html'),
4146
'<span class="sql-reserved">SELECT</span>' . "\n" .

0 commit comments

Comments
 (0)