jdorn / sql-formatter

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.
http://jdorn.github.com/sql-formatter/
MIT License
3.89k stars 187 forks source link

Compress method doesn't remove all whitespaces #90

Open Person-93 opened 7 years ago

Person-93 commented 7 years ago

I have a QueryBuilder class that I am testing and I tried to use the compress method on the actual and expected results before comparing them, but the tests fail because the whitespaces don't match. This is the output from PHPUnit: The filter text does not match the expected result. Failed asserting that two strings are equal. Expected :'someField = 1' Actual :'someField=1'