=== modified file 'modules/simpletest/drupal_web_test_case.php'
--- modules/simpletest/drupal_web_test_case.php	2009-06-16 04:43:47 +0000
+++ modules/simpletest/drupal_web_test_case.php	2009-06-22 06:52:36 +0000
@@ -340,6 +340,13 @@ abstract class DrupalTestCase {
   }
 
   /**
+   * Set up the environment for testing.
+   */
+  protected function setUp() {
+    drupal_static_reset();
+  }
+
+  /**
    * Run all tests in this class.
    */
   public function run() {
@@ -497,6 +504,7 @@ class DrupalUnitTestCase extends DrupalT
       unset($module_list['locale']);
       module_list(TRUE, FALSE, $module_list);
     }
+    parent::setUp();
   }
 
   function tearDown() {
@@ -971,7 +979,7 @@ class DrupalWebTestCase extends DrupalTe
    * @param ...
    *   List of modules to enable for the duration of the test.
    */
-  protected function setUp() {
+  function setUp() {
     global $db_prefix, $user, $language;
 
     // Store necessary current values before switching to prefixed database.
@@ -1045,6 +1053,7 @@ class DrupalWebTestCase extends DrupalTe
     file_check_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
 
     set_time_limit($this->timeLimit);
+    parent::setUp();
   }
 
   /**

