Add PHPUnit

Fixes #16.
Merge pull request #21 from atdt/master

Provide working PHPUnit