Index: includes/bootstrap.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v retrieving revision 1.312 diff -u -r1.312 bootstrap.inc --- includes/bootstrap.inc 18 Oct 2009 11:36:49 -0000 1.312 +++ includes/bootstrap.inc 21 Oct 2009 05:18:41 -0000 @@ -1388,7 +1388,7 @@ * function called from drupal_bootstrap (recursion). * @return * The most recently completed phase. - * + * */ function drupal_bootstrap($phase = NULL, $new_phase = TRUE) { $final_phase = &drupal_static(__FUNCTION__ . '_final_phase'); @@ -2002,6 +2002,7 @@ unset($data[$name]); } else { + file_put_contents('output.html', var_export($data, TRUE)); $data = array(); } // We must return a reference to a variable. Index: modules/simpletest/drupal_web_test_case.php =================================================================== RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v retrieving revision 1.164 diff -u -r1.164 drupal_web_test_case.php --- modules/simpletest/drupal_web_test_case.php 20 Oct 2009 00:55:29 -0000 1.164 +++ modules/simpletest/drupal_web_test_case.php 21 Oct 2009 05:18:41 -0000 @@ -1053,6 +1053,9 @@ ini_set('log_errors', 1); ini_set('error_log', $directory . '/error.log'); + drupal_static_reset(); + drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); + include_once DRUPAL_ROOT . '/includes/install.inc'; drupal_install_system();