summaryrefslogtreecommitdiff
path: root/tests/test_tools
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tools')
-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);