only test enabled exts

This commit is contained in:
Shish 2012-04-01 16:45:12 +01:00
parent cf5e35bd2d
commit d1a4c32ef6

View File

@ -197,10 +197,10 @@ class ShimmieWebTestCase extends SCoreWebTestCase {
class TestFinder extends TestSuite { class TestFinder extends TestSuite {
function TestFinder($hint) { function TestFinder($hint) {
if(strpos($hint, "..") !== FALSE) return; if(strpos($hint, "..") !== FALSE) return;
$dir = "*"; $dir = "{".ENABLED_EXTS."}";
if(file_exists("ext/$hint/test.php")) $dir = $hint; if(file_exists("ext/$hint/test.php")) $dir = $hint;
$this->TestSuite('All tests'); $this->TestSuite('All tests');
foreach(glob("ext/$dir/test.php") as $file) { foreach(glob("ext/$dir/test.php", GLOB_BRACE) as $file) {
$this->addFile($file); $this->addFile($file);
} }
} }