Fix Non-static method warning on PHP 5.4
Add tests for phpunit
Add settings for travis-ci