enabling nesting of group tests in TestManager::addTestFile

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7060 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
DarkAngelBGE 2008-05-30 10:27:56 +00:00
parent 67f2255076
commit f749143f5d

View file

@ -117,9 +117,15 @@ class TestManager {
} }
} }
function addTestFile(&$groupTest, $file) { function addTestFile(&$groupTest, $file, $isGroupTest = false) {
$manager =& new TestManager(); $manager =& new TestManager();
$groupTest->addTestFile($file.'.test.php');
if (!$isGroupTest) {
$file .= '.test.php';
} else {
$file .= '.group.php';
}
$groupTest->addTestFile($file);
} }
function &getTestCaseList() { function &getTestCaseList() {