Refactored "saveString" for clarity, improved docblock, added more comments
Added and updated more comments.
Added test cases for comments.
Cleaned up stray newlines that would occur around some comments.
Added tests and functionality to trim strings with escaped new lines.
Optimized minify wrapper function

Previously a single instance of the Minifier was reused between
requests, but this update forces a new one to be created each time.
This actually improves performance, especially in cases where there are
a lot of small scripts being processed, as the cleanup is more
efficient and less checks have to be done to make sure the instance was
cleanly reset.
Reworked getChar for clarity and added more comments.
Test Suite Updates

* Renamed the “expect” folder to “output” and the “test” folder to
“input” in the Resources directory.
* Altered test suite to only read .js files from the resource groups.
* Created test suite groups, with two (Requests and Development) being
excluded from the default group.
* Renamed getExampleFiles to getTestFiles.
Added tests for throwing exceptions.
Updated exception comments to be more useful, added them to test suite.
Added regular expression test
Corrected typo  in exception message
Corrected usage of phpunit for more accurate test messages, cleaned up some function names

Changed “$unminified” and “$minified” to “$inpout” and “$output” to
make things more clear.

Corrected the order of the assertEquals argument to make sure the
“Expected” and “Actual” messages were representing the right data.
Changed "self" calls to "static" ones.

This isn’t php5.2 anymore, and this will make extending the class
easier.
Removed superfluous static variable, cleaned up comments.
Merge pull request #25 from tedivm/refactor

Refactoring!

Major points:

* Increased code coverage significantly.
* Increased testing of Comments, Strings and Regex.
* Added tests for error conditions to ensure proper exceptions are thrown.
* Added additional test groups for feature requests and in development test cases.
* Cleaned up stray lines that were being outputted around comments.
* Reduced size of multiline strings even further!
* Revamped "minify" function to create new instances of the minifier class each time.
* Made code more portable by removing some old PHP 5.2 code.
* Normalized Exception methods and made them more clear.
* Added and updated a lot of the comments.