Convert to PHPUnit

Here it is, all cleaned up