diff options
author | Michal Čihař <michal@cihar.com> | 2016-09-13 14:23:10 +0200 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-09-13 14:23:10 +0200 |
commit | 2ea89022643ef5676512b9050a73dd8b8c8d4d74 (patch) | |
tree | 6e01eafa55c43c19d2836cff2ab1223bdbfc1e0d /tests/Utils/FormatterTest.php | |
parent | 252c2c1ab67786022090114d76657a25cdd8b49b (diff) | |
download | sql-parser-2ea89022643ef5676512b9050a73dd8b8c8d4d74.zip sql-parser-2ea89022643ef5676512b9050a73dd8b8c8d4d74.tar.gz sql-parser-2ea89022643ef5676512b9050a73dd8b8c8d4d74.tar.bz2 |
Add test for comment highlighting
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tests/Utils/FormatterTest.php')
-rw-r--r-- | tests/Utils/FormatterTest.php | 7 |
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', + ), ); } } |