$test_completion_check_id=TestBase::insertAssert($this->testId,$class,FALSE,'The test did not complete due to a fatal error.','Completion check',$caller);
try{
$this->prepareEnvironment();
}
}
else{
if(defined("$class::SORT_METHODS")){
sort($class_methods);
catch(\Exception$e){
$this->exceptionHandler($e);
// The prepareEnvironment() method isolates the test from the parent
// Drupal site by creating a random database prefix and test site
// directory. If this fails, a test would possibly operate in the
// parent site. Therefore, the entire test run for this test class
// has to be aborted.
// restoreEnvironment() cannot be called, because we do not know
// where exactly the environment setup failed.
break;
}
foreach($class_methodsas$method){
// If the current method starts with "test", run it - it's a test.
if(strtolower(substr($method,0,4))=='test'){
// Insert a fail record. This will be deleted on completion to ensure