diff options
-rw-r--r-- | tests/test_tools/unit_tests.php | 2 |
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); |