PHPCoverage Code
Status: Beta
Brought to you by:
pnimish
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | ################################################################################ # $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% ############################################## |