? modules/simpletest/variable-profile-279455-1.patch
Index: modules/simpletest/drupal_web_test_case.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/drupal_web_test_case.php,v
retrieving revision 1.34
diff -u -p -r1.34 drupal_web_test_case.php
--- modules/simpletest/drupal_web_test_case.php	23 Aug 2008 07:42:54 -0000	1.34
+++ modules/simpletest/drupal_web_test_case.php	28 Aug 2008 09:35:21 -0000
@@ -1107,7 +1107,9 @@ class DrupalWebTestCase {
 
     // Search option group children.
     if (isset($element->optgroup)) {
-      $options = array_merge($options, $this->getAllOptions($element->optgroup));
+      foreach ($element->optgroup as $group) {
+        $options = array_merge($options, $this->getAllOptions($group));
+      }
     }
     return $options;
   }
