Permalink
Browse files

Refactoring hardcoded extensions to use properties.

  • Loading branch information...
1 parent 104086b commit 34ffa43119e39c6f5961d87c8b7f9101d49ffeb6 @markstory markstory committed Jan 5, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 cake/tests/lib/test_manager.php
@@ -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);
}

0 comments on commit 34ffa43

Please sign in to comment.