Adds a testing framework

This commit adds some phpunit-files to make testing easier as well as
adding some files to enable testing via TravisCI.