run_test(); $results = $class->results; $this->tests_run++; $this->assertions += $class->assertions; } else { $res = new HealthCheckTestResult(); $res->markAsFailed( sprintf( __('Class %s has been registered as a test but it is not a subclass of HealthCheckTest.'), $classname), HEALTH_CHECK_ERROR); $results[] = $res; } } else { $res = new HealthCheckTestResult(); $res->markAsFailed( sprintf( __('Class %s has been registered as a test but it has not been defined.'), $classname), HEALTH_CHECK_ERROR); $results[] = $res; } // Save results grouped by severity foreach ($results as $res) { $GLOBALS['_HealthCheck_Instance']->test_results[$res->severity][] = $res; } } } ?>