function SimpleTestFunctionalTest::getResultFieldSet

Get the fieldset containing the results for group this test is in.

1 call to SimpleTestFunctionalTest::getResultFieldSet()
SimpleTestFunctionalTest::getTestResults in drupal/modules/simpletest/simpletest.test
Get the results from a test and store them in the class array $results.

File

drupal/modules/simpletest/simpletest.test, line 287
Tests for simpletest.module.

Class

SimpleTestFunctionalTest
@file Tests for simpletest.module.

Code

function getResultFieldSet() {
  $fieldsets = $this
    ->xpath('//fieldset');
  $info = $this
    ->getInfo();
  foreach ($fieldsets as $fieldset) {
    if ($this
      ->asText($fieldset->legend) == $info['name']) {
      return $fieldset;
    }
  }
  return FALSE;
}