Added phpunit, mockery + a ton of tests.
Merge pull request #25 from chrispitt/adding-some-tests

Added phpunit, mockery + a ton of tests.