Skip to content

Commit 79bf8de

Browse files
committed
Add test for comments removal
Signed-off-by: Michal Čihař <[email protected]>
1 parent 3ac7614 commit 79bf8de

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/Utils/FormatterTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ public function formatQueries()
103103
'</span>',
104104
array('type' => 'html'),
105105
),
106+
array(
107+
'SELECT 1 -- comment',
108+
'<span class="sql-reserved">SELECT</span>' . "\n" .
109+
' <span class="sql-number">1</span>',
110+
array('type' => 'html', 'remove_comments' => true),
111+
),
106112
);
107113
}
108114
}

0 commit comments

Comments
 (0)