PHPCoverage Code
Status: Beta
Brought to you by:
pnimish
File | Date | Author | Commit |
---|---|---|---|
README | 2007-07-06 | npac | [r13] - Added 0.8 release |
codeCoverageMain.php | 2007-07-06 | npac | [r13] - Added 0.8 release |
phpcoverage.inc.php | 2007-07-06 | npac | [r13] - Added 0.8 release |
sample.php | 2007-07-06 | npac | [r13] - Added 0.8 release |
sample2.php | 2007-07-06 | npac | [r13] - Added 0.8 release |
sample3.php | 2007-07-06 | npac | [r13] - Added 0.8 release |
sample4.php | 2007-07-06 | npac | [r13] - Added 0.8 release |
################################################################################ # $Id: README 49493 2006-04-08 00:16:04Z hkodungallur $ # # Copyright(c) 2004-2006, SpikeSource Inc. All Rights Reserved. # Licensed under the Open Software License version 2.1 # (See http://www.spikesource.com/license.html) ################################################################################ ################################################ # Spike PHPCoverage Local Code Coverage Sample ################################################ This sample has a single PHP file taken straight from the Xdebug documentation - named as "sample.php". The codeCoverageMain.php is the wrapper script that sets up the code coverage recording and then executes the "sample.php" file. The code coverage report is generated in a directory called "report" in the current working directory. To execute this sample, run the following commands assuming that the PHP command line executable is in your path. Linux: $ (export PHPCOVERAGE_HOME=/path/to/phpcoverage/src; php codeCoverageMain.php) Windows: C:\> set PHPCOVERAGE_HOME=\path\to\phpcoverage\src C:\> php codeCoverageMain.php The expected output should be something like this: ############################################## Code Coverage Summary: Code Coverage Report Total Files: 2 Total Lines: 94 Total Covered Lines of Code: 22 Total Missed Lines of Code: 3 Total Lines of Code: 25 Code Coverage: 88% ##############################################