Xinc is a continuous integration server written in PHP 5
Xinc has built-in support for Subversion and Phing (and therefore PHPUnit), and can be easily extended to work with alternative version control or build tools.
Source code can be found here: http://code.google.com/p/xinc/