=== modified file 'modules/simpletest/simpletest.test'
--- modules/simpletest/simpletest.test	2009-04-27 17:27:02 +0000
+++ modules/simpletest/simpletest.test	2009-09-10 23:45:08 +0000
@@ -206,15 +206,14 @@
    */
   function getTestResults() {
     $results = array();
-
     if ($this->parse()) {
       if ($fieldset = $this->getResultFieldSet()) {
         // Code assumes this is the only test in group.
         $results['summary'] = $this->asText($fieldset->div);
-        $results['name'] = $this->asText($fieldset->fieldset->legend);
+        $results['name'] = $this->asText($fieldset->legend);
 
         $results['assertions'] = array();
-        $tbody = $fieldset->fieldset->table->tbody;
+        $tbody = $fieldset->table->tbody;
         foreach ($tbody->tr as $row) {
           $assertion = array();
           $assertion['message'] = $this->asText($row->td[0]);
@@ -240,7 +239,7 @@
     $fieldsets = $this->xpath('//fieldset');
     $info = $this->getInfo();
     foreach ($fieldsets as $fieldset) {
-      if ($fieldset->legend == $info['group']) {
+      if ($fieldset->legend == $info['name']) {
         return $fieldset;
       }
     }

