summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwei <>2007-05-08 01:21:50 +0000
committerwei <>2007-05-08 01:21:50 +0000
commit8cfeb336ca6696b454dc34820a9f0d06c3e36cad (patch)
tree62d1ada92cd9002244e5d2eb6e8b30a856bc5289
parent7ff413dbb8050c90b4d78bd999065d4e4673891a (diff)
Fixed http://www.pradosoft.com/forum/index.php/topic,7566.0/topicseen.html
-rw-r--r--tests/test_tools/unit_tests.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_tools/unit_tests.php b/tests/test_tools/unit_tests.php
index 61daf26c..b494ca05 100644
--- a/tests/test_tools/unit_tests.php
+++ b/tests/test_tools/unit_tests.php
@@ -72,7 +72,7 @@ class PradoUnitTester
$dir=opendir($path);
while(($entry=readdir($dir))!==false)
{
- if(is_file($path.'/'.$entry) && (strncmp($entry,'ut',2)===0||preg_match('/test.*\.php/', strtolower($entry))))
+ if(is_file($path.'/'.$entry) && (strncmp($entry,'ut',2)===0||preg_match('/test.*\.php$/i', $entry)))
$test->addTestFile($path.'/'.$entry);
else if($entry!=='.' && $entry!=='..' && $entry!=='.svn' && is_dir($path.'/'.$entry) && $recursive)
$this->addTests($test,$path.'/'.$entry,$recursive);