You are here

function SimpleTestFunctionalTest::getResultFieldSet in Drupal 7

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

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

File

modules/simpletest/simpletest.test, line 292
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;
}