1 simpletest.test SimpleTestFunctionalTest::getTestIdFromResults()

Fetch the test id from the test results.

File

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

Class

SimpleTestFunctionalTest

Code

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