You are here

protected function SimpleTestFunctionalTest::getResultFieldSet in SimpleTest 7.2

Same name and namespace in other branches
  1. 6.2 simpletest.test \SimpleTestFunctionalTest::getResultFieldSet()
  2. 7 simpletest.test \SimpleTestFunctionalTest::getResultFieldSet()

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

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

File

./simpletest.test, line 286
Tests for simpletest.module.

Class

SimpleTestFunctionalTest
@file Tests for simpletest.module.

Code

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