Fixing notice when not group tests are found

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4436 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-02-04 02:21:32 +00:00
parent 8dc3209a59
commit 45162b05fd

View file

@ -312,6 +312,11 @@ class HtmlTestManager extends TestManager {
$manager =& new HtmlTestManager();
$groupTests =& $manager->_getTestGroupList($directory);
if (1 > count($groupTests)) {
$noGroupTests = "<p>No test cases set up!</p>";
return $noGroupTests;
}
if (isset($_GET['app'])){
$buffer = "<p>Available App Test Groups:</p>\n<ul>";
} else {