Index: simpletest/simpletest.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simpletest/simpletest.install,v
retrieving revision 1.4.2.3.2.13
diff -u -r1.4.2.3.2.13 simpletest.install
--- simpletest/simpletest.install	27 Nov 2008 21:28:37 -0000	1.4.2.3.2.13
+++ simpletest/simpletest.install	30 Jan 2009 05:01:04 -0000
@@ -107,6 +107,7 @@
   $t = get_t();
 
   $has_curl = function_exists('curl_init');
+  $has_dom_document = class_exists('DOMDocument');
 
   switch ($phase) {
     case 'runtime':
@@ -115,6 +116,12 @@
         'value' => $has_curl ? $t('Enabled') : $t('Not found'),
         'severity' => $has_curl ? REQUIREMENT_OK : REQUIREMENT_ERROR,
       );
+      $requirements['simpletest_dom_document'] = array(
+        'title' => $t('PHP DOMDocument class'),
+        'value' => $has_dom_document ? $t('Enabled') : $t('Not found'),
+        'severity' => $has_dom_document ? REQUIREMENT_OK : REQUIREMENT_ERROR,
+        'description' => $has_dom_document ? '' : t('SimpleTest requires the DOMDocument class to be available. Please check your configure command at the !phpinfo_link page.', array('!phpinfo_link' => l('PHP Info', 'admin/reports/status/php'))),
+      );
       break;
     case 'install':
       if (!$has_curl) {
@@ -124,6 +131,13 @@
           'description' => $t('Simpletest could not be installed because the PHP <a href="!curl_url">cURL</a> library is not available.', array('!curl_url' => 'http://php.net/manual/en/curl.setup.php')),
         );
       }
+      if (!$has_dom_document) {
+        $requirements['simpletest_dom_document'] = array(
+          'title' => $t('PHP DOMDocument class'),
+          'severity' => REQUIREMENT_ERROR,
+          'description' => $t('Simpletest could not be installed because the PHP DOMDocument class is not available. Please check your configure command at the !phpinfo_link page.', array('!phpinfo_link' => l('PHP Info', 'admin/reports/status/php'))),
+        );
+      }
       break;
   }
 
