mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Refactoring hardcoded extensions to use properties.
This commit is contained in:
parent
104086b928
commit
34ffa43119
1 changed files with 4 additions and 4 deletions
|
@ -201,10 +201,10 @@ class TestManager {
|
|||
function addTestFile(&$groupTest, $file) {
|
||||
$manager =& new TestManager();
|
||||
|
||||
if (file_exists($file.'.test.php')) {
|
||||
$file .= '.test.php';
|
||||
} elseif (file_exists($file.'.group.php')) {
|
||||
$file .= '.group.php';
|
||||
if (file_exists($file . $manager->_testExtension)) {
|
||||
$file .= $manager->_testExtension;
|
||||
} elseif (file_exists($file . $manager->_groupExtension)) {
|
||||
$file .= $manager->_groupExtension;
|
||||
}
|
||||
$groupTest->addTestFile($file);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue