From e2184e25ac140d3b44709b7b070c1c4889122d45 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 25 May 2009 05:20:16 +0000 Subject: - Patch #464714 by chx, DamZ: speed up the tests by bringing unit tests backt to live. Unit tests bootstrap faster and have the potential to speed up testing. We'll need help converting tests where possible. --- modules/simpletest/simpletest.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/simpletest/simpletest.module') diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module index df0725f76..58c01b6f2 100644 --- a/modules/simpletest/simpletest.module +++ b/modules/simpletest/simpletest.module @@ -238,7 +238,7 @@ function simpletest_get_all_tests() { } $classes = array_values(array_diff(get_declared_classes(), $existing_classes)); foreach ($classes as $key => $class) { - if (!method_exists($class, 'getInfo')) { + if (!is_subclass_of($class, 'DrupalTestCase') || !method_exists($class, 'getInfo')) { unset($classes[$key]); } } -- cgit v1.2.3