Index: index.php
===================================================================
RCS file: /cvs/drupal/drupal/index.php,v
retrieving revision 1.94
diff -u -p -r1.94 index.php
--- index.php	26 Dec 2007 08:46:48 -0000	1.94
+++ index.php	9 Aug 2008 20:13:10 -0000
@@ -1,6 +1,6 @@
 <?php
 // $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
-
+require_once './sites/all/modules/code_coverage/code_coverage.module';
 /**
  * @file
  * The PHP page that serves all page requests on a Drupal installation.
Index: xmlrpc.php
===================================================================
RCS file: /cvs/drupal/drupal/xmlrpc.php,v
retrieving revision 1.15
diff -u -p -r1.15 xmlrpc.php
--- xmlrpc.php	10 Dec 2005 19:26:47 -0000	1.15
+++ xmlrpc.php	9 Aug 2008 20:13:10 -0000
@@ -1,6 +1,6 @@
 <?php
 // $Id: xmlrpc.php,v 1.15 2005/12/10 19:26:47 dries Exp $
-
+require_once './sites/all/modules/code_coverage/code_coverage.module';
 /**
  * @file
  * PHP page for handling incoming XML-RPC requests from clients.
Index: modules/simpletest/simpletest.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/simpletest.module,v
retrieving revision 1.8
diff -u -p -r1.8 simpletest.module
--- modules/simpletest/simpletest.module	9 Aug 2008 12:41:22 -0000	1.8
+++ modules/simpletest/simpletest.module	9 Aug 2008 20:13:12 -0000
@@ -324,7 +324,7 @@ function simpletest_run_tests($test_list
     simpletest_get_all_tests();
     foreach ($test_list as $test_class) {
       $test = new $test_class($test_id);
-      $test->run();
+      xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);$test->run();code_coverage_log();
     }
     $_SESSION['test_id'] = $test_id;
   }
@@ -354,7 +354,7 @@ function _simpletest_batch_operation($te
   // Perform the next test.
   $test_class = array_shift($test_list);
   $test = new $test_class($test_id);
-  $test->run();
+  xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);$test->run();code_coverage_log();
   $size = count($test_list);
   $info = $test->getInfo();
 
