mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
67f2255076
commit
f749143f5d
1 changed files with 8 additions and 2 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue