Switch to PHPUnit for testing.

At the moment the tests are very humble, just testing the constructor and
string output for a few scenarios.