? patches
Index: simpletest.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/Attic/simpletest.install,v
retrieving revision 1.4.2.3.2.28
diff -u -p -r1.4.2.3.2.28 simpletest.install
--- simpletest.install	31 Jan 2011 21:33:15 -0000	1.4.2.3.2.28
+++ simpletest.install	31 Jan 2011 21:37:35 -0000
@@ -22,7 +22,6 @@ function simpletest_requirements($phase)
   $has_hash = function_exists('hash_hmac');
   $has_domdocument = method_exists('DOMDocument', 'loadHTML');
   $open_basedir = ini_get('open_basedir');
-  $patch_installed = isset($GLOBALS['simpletest_installed']);
 
   $requirements['curl'] = array(
     'title' => $t('cURL'),
@@ -67,18 +66,21 @@ function simpletest_requirements($phase)
   $memory_limit = ini_get('memory_limit');
   if ($memory_limit && $memory_limit != -1 && parse_size($memory_limit) < parse_size(SIMPLETEST_MINIMUM_PHP_MEMORY_LIMIT)) {
     $requirements['php_memory_limit']['severity'] = REQUIREMENT_ERROR;
-    $requirements['php_memory_limit']['description'] = t('The testing framework requires the PHP memory limit to be at least %memory_minimum_limit. The current value is %memory_limit. <a href="@url">Follow these steps to continue</a>.', array('%memory_limit' => $memory_limit, '%memory_minimum_limit' => SIMPLETEST_MINIMUM_PHP_MEMORY_LIMIT, '@url' => 'http://drupal.org/node/207036'));
+    $requirements['php_memory_limit']['description'] = $t('The testing framework requires the PHP memory limit to be at least %memory_minimum_limit. The current value is %memory_limit. <a href="@url">Follow these steps to continue</a>.', array('%memory_limit' => $memory_limit, '%memory_minimum_limit' => SIMPLETEST_MINIMUM_PHP_MEMORY_LIMIT, '@url' => 'http://drupal.org/node/207036'));
   }
 
   // Check that the global variable is defined signifying that the patch
   // was correctly applied to the Drupal 6 core.
-  $requirements['simpletest_patch'] = array(
-    'title' => $t('SimpleTest code addition'),
-    'value' => $patch_installed ? $t('Found') : $t('Not found'),
-  );
-  if (!$patch_installed) {
-    $requirements['simpletest_patch']['severity'] = REQUIREMENT_ERROR;
-    $requirements['simpletest_patch']['description'] = $t('SimpleTest could not be installed. The required core patch must be applied. See the included <a href="@install">INSTALL.txt</a>.', array('@install' => base_path() . drupal_get_path('module', 'simpletest') . '/INSTALL.txt'));
+  if ($phase == 'runtime') {
+    $patch_installed = isset($GLOBALS['simpletest_installed']);
+    $requirements['simpletest_patch'] = array(
+      'title' => $t('SimpleTest code addition'),
+      'value' => $patch_installed ? $t('Found') : $t('Not found'),
+    );
+    if (!$patch_installed) {
+      $requirements['simpletest_patch']['severity'] = REQUIREMENT_ERROR;
+      $requirements['simpletest_patch']['description'] = $t('SimpleTest could not be installed. The required core patch must be applied. See the included <a href="@install">INSTALL.txt</a>.', array('@install' => base_path() . drupal_get_path('module', 'simpletest') . '/INSTALL.txt'));
+    }
   }
 
   return $requirements;
