summaryrefslogtreecommitdiffstats
path: root/tests/Utils/FormatterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Utils/FormatterTest.php')
-rw-r--r--tests/Utils/FormatterTest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/Utils/FormatterTest.php b/tests/Utils/FormatterTest.php
index 3191a46..1344257 100644
--- a/tests/Utils/FormatterTest.php
+++ b/tests/Utils/FormatterTest.php
@@ -64,6 +64,16 @@ class FormatTest extends TestCase
'html'
),
array(
+ 'INSERT INTO foo VALUES (0, 0, 0), (1, 1, 1)',
+ '<span class="sql-reserved">INSERT</span>' . "\n" .
+ '<span class="sql-reserved">INTO</span>' . "\n" .
+ ' foo' . "\n" .
+ '<span class="sql-reserved">VALUES</span>' .
+ '(<span class="sql-number">0</span>, <span class="sql-number">0</span>, <span class="sql-number">0</span>),' .
+ '(<span class="sql-number">1</span>, <span class="sql-number">1</span>, <span class="sql-number">1</span>)',
+ 'html'
+ ),
+ array(
'SELECT 1',
"\x1b[35mSELECT\n \x1b[92m1",
'cli'