SpikeSource has open sourced a code coverage measurement and reporting tool for PHP. This tool, called Spike PHPCoverage, can instrument and record the line coverage information for PHP scripts at runtime.
Spike PHPCoverage works on PHP 5.0 or newer and uses Xdebug Extension for gathering the coverage data.
The tool is still in version 0.6 with a lot of room for improvement. It is available as an open source project on <a href=”http://sourceforge.net/projects/phpcoverage/”>SourceForge.net</a>. Please visit <a href=”http://www.spikesource.com/projects/phpcoverage/”>http://www.spikesource.com/projects/phpcoverage/</a> for more information, screen shots, and feedback.
I have been working on this tool. So let me know your feedback.
Ive only played with PHPUnit for a week now, but I have found out that…
PHPUnit3 (to be released) supports code coverage, also using Xdebug. PHPUnit2 might, but it doesnt show up when typing, "phpunit –help" at the command line. So far, this tool has been great for creating unit tests. The reporting abilities, and compatibility with Phing looks very impressive.