Added phpunit to travis-ci
Fixed violations from scrutinizer report