rewritten to work in php 5.3, removed travis coveralls phpunit, moved to asserts for testing