function SimpleTestFunctionalTest::getResultFieldSet

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 312

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.