Updated example.
Beginnings of PHPUnit tests.

Replacing SimpleTest with PHPUnit.
Converted example.php into a number of unit tests.