2 require_once 'SebastianBergmann/CodeCoverage/autoload.php';
3 $covfilter = new SebastianBergmann\CodeCoverage\Filter();
4 $covfilter->addDirectoryToWhitelist($_SERVER['COV_PHP_DIR']);
5 $coverage = new SebastianBergmann\CodeCoverage\CodeCoverage(null, $covfilter);
6 $coverage->start($_SERVER['COV_TEST_NAME']);
8 include $_SERVER['COV_SCRIPT_FILENAME'];
12 $writer = new \SebastianBergmann\CodeCoverage\Report\PHP;
13 $writer->process($coverage, $_SERVER['PHP_CODE_COVERAGE_FILE']);