summaryrefslogtreecommitdiffstats
path: root/tests/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Utils')
-rw-r--r--tests/Utils/FormatterTest.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Utils/FormatterTest.php b/tests/Utils/FormatterTest.php
index 6e8b1a6..20db2c5 100644
--- a/tests/Utils/FormatterTest.php
+++ b/tests/Utils/FormatterTest.php
@@ -96,6 +96,13 @@ class FormatTest extends TestCase
' superado = <span class="sql-number">0</span>',
'html',
),
+ array(
+ 'SELECT 1 -- comment',
+ '<span class="sql-reserved">SELECT</span>' . "\n" .
+ ' <span class="sql-number">1</span> <span class="sql-comment">-- comment' . "\n" .
+ '</span>',
+ 'html',
+ ),
);
}
}