################################################################################
#  $Id: README 16493 2005-04-18 17:17:37Z npac $
#  
#  Copyright(c) 2004-2005, SpikeSource Inc. All Rights Reserved.
#  Licensed under the Open Source 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:

[phpcoverage.inc.php] PHPCOVERAGE_HOME=/path/to/phpcoverage/src
[phpcoverage.inc.php] PHPCOVERAGE_REPORT_DIR=
[phpcoverage.inc.php] PHPCOVERAGE_APPBASE_PATH=
[CoverageRecorder::generateReport()] Writing report:            [done]

##############################################
 Code Coverage Summary: Code Coverage Report
 Total Lines: 16
 Total Covered Lines of Code: 5
 Total Missed Lines of Code: 0
 Total Lines of Code: 5
 Code Coverage: 100%
##############################################

