First published in 2004 by Sebastian Bergmann, PHPUnit has become the de-facto standard for unit testing in PHP, like JUnit did for JAVA.
It was written to help developers to test each part of their program in isolation.
PHPUnit tests can be automated and integrated into continious integration. Jenkins and other CI-tools support PHPUnit.
Link: Official homepage