Skip to content

Commit a1e6fe1

Browse files
committed
Test console highligting of more complex queries
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 95e4520 commit a1e6fe1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Utils/FormatterTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ public function formatQueries()
7878
"\x1b[35mSELECT\n \x1b[92m1\x1b[0m",
7979
'cli'
8080
),
81+
array(
82+
'SELECT "Text" AS BAR',
83+
"\x1b[35mSELECT\n \x1b[91m\"Text\" \x1b[35mAS \x1b[39mBAR\x1b[0m",
84+
'cli'
85+
),
8186
array(
8287
'SELECT coditm AS Item, descripcion AS Descripcion, contenedores AS Contenedores, IF(suspendido = 1, Si, NO) AS Suspendido FROM `DW_articulos` WHERE superado = 0',
8388
'<span class="sql-reserved">SELECT</span>' . "\n" .

0 commit comments

Comments
 (0)