diff --git a/cake/tests/lib/test_manager.php b/cake/tests/lib/test_manager.php index 06c74d2f0..699af482f 100644 --- a/cake/tests/lib/test_manager.php +++ b/cake/tests/lib/test_manager.php @@ -267,14 +267,10 @@ class TextTestManager extends TestManager { $manager =& new TextTestManager(); $groupTests =& $manager->_getTestGroupList($directory); - if (1 > count($groupTests)) { - $noGroups = "No test groups set up!\n"; - return $noGroups; - } $buffer = "Available test groups:\n"; $buffer .= $manager->getBaseURL() . "?group=all All tests<\n"; - foreach ($groupTests as $groupTest) { + foreach ((array)$groupTests as $groupTest) { $buffer .= "