Skip to content

Commit

Permalink
Refactoring hardcoded extensions to use properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 5, 2010
1 parent 104086b commit 34ffa43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cake/tests/lib/test_manager.php
Expand Up @@ -201,10 +201,10 @@ function addTestCasesFromDirectory(&$groupTest, $directory = '.') {
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);
}
Expand Down

0 comments on commit 34ffa43

Please sign in to comment.