In this blog entry on Sebastian Nohn's site, he explains how to use CruiseControl, Ant, and PHPUnit to provide continuous builds for your application.
This blog posting will show you how to enable continuous builds with CruiseControl, Ant and PHPUnit. But be warned: Continuous builds are addicting.
An important part of any software development process is getting reliable builds of the software. Despite it's importance, we are often surprised when this isn't done. We stress a fully automated and reproducible build, including testing, that runs many times a day. This allows each developer to integrate daily thus reducing integration problems.
They step you through the process - the installation of the needed packages, working with Ant, getting it to talk to Cruise, and the integration of PHPUnit. Finally, they work in a method to notify others (in this case, the management) when successful builds have been compiled.