From 8cfeb336ca6696b454dc34820a9f0d06c3e36cad Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 8 May 2007 01:21:50 +0000 Subject: Fixed http://www.pradosoft.com/forum/index.php/topic,7566.0/topicseen.html --- tests/test_tools/unit_tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_tools') 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); -- cgit v1.2.3