PHPUnit is the de facto standard for writing unit tests for PHP code.