function SimpleTestFunctionalTest::getTestIdFromResults

Fetch the test id from the test results.

2 calls to SimpleTestFunctionalTest::getTestIdFromResults()
SimpleTestFunctionalTest::confirmStubTestResults in drupal-7.x/modules/simpletest/simpletest.test
Confirm that the stub test produced the desired results.
SimpleTestFunctionalTest::confirmStubTestResults in drupal-7.x/modules/simpletest/simpletest.test
Confirm that the stub test produced the desired results.

Archivo

drupal-7.x/modules/simpletest/simpletest.test, line 219
Tests for simpletest.module.

Class

SimpleTestFunctionalTest

Código

function getTestIdFromResults() {
  foreach ($this->childTestResults['assertions'] as $assertion) {
    if (preg_match('@^Test ID is ([0-9]*)\.$@', $assertion['message'], $matches)) {
      return $matches[1];
    }
  }
  return NULL;
}