As of version 3.2, PHPUnit will not only be able to calculate and collect a variety of software metrics. It will also be able to report violations of rules that are based on these metrics in PMD's XML format. This information can then be fed to any tool that integrates with PMD.
The Project Mess Detector (PMD) software scans code and looks for potential problems. Having this integrated with PHPUnit means one less piece of software to run and the potential for even better written code.