1 simpletest.test SimpleTestFunctionalTest::getResultFieldSet()

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

File

core/modules/simpletest/tests/simpletest.test, line 314
Tests for simpletest.module.

Class

SimpleTestFunctionalTest

Code

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