function testRemoveComments() { $expected = SqlFormatter::format("SELECT\n * FROM\n MyTable", false); $sql = "/* this is a comment */SELECT#This is another comment\n * FROM-- One final comment\n MyTable"; $actual = SqlFormatter::removeComments($sql); $this->assertEquals($expected, $actual); }