protected function SimpleTestFunctionalTest::getTestIdFromResults in SimpleTest 7.2
Same name and namespace in other branches
- 6.2 simpletest.test \SimpleTestFunctionalTest::getTestIdFromResults()
- 7 simpletest.test \SimpleTestFunctionalTest::getTestIdFromResults()
Fetch the test id from the test results.
1 call to SimpleTestFunctionalTest::getTestIdFromResults()
- SimpleTestFunctionalTest::confirmStubTestResults in ./
simpletest.test - Confirm that the stub test produced the desired results.
File
- ./
simpletest.test, line 218 - Tests for simpletest.module.
Class
- SimpleTestFunctionalTest
- @file Tests for simpletest.module.
Code
protected function getTestIdFromResults() {
foreach ($this->childTestResults['assertions'] as $assertion) {
if (preg_match('@^Test ID is ([0-9]*)\\.$@', $assertion['message'], $matches)) {
return $matches[1];
}
}
return NULL;
}