You are here

function SimpleTestFunctionalTest::getResultFieldSet in SimpleTest 7

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

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

Return value

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 236

Class

SimpleTestFunctionalTest

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;
}