diff options
author | wei <> | 2006-01-06 05:32:33 +0000 |
---|---|---|
committer | wei <> | 2006-01-06 05:32:33 +0000 |
commit | 16660934cc48f357b1322bce7869158db2f7cb58 (patch) | |
tree | cd142f641e14c0338eb8847f00b572cb4f4603be /tests/UnitTests/framework/index.php | |
parent | ed3e43d30524a76969fb7d42cb5e613c2e1a1d9a (diff) |
Adding I18N unit test cases.
Diffstat (limited to 'tests/UnitTests/framework/index.php')
-rw-r--r-- | tests/UnitTests/framework/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/UnitTests/framework/index.php b/tests/UnitTests/framework/index.php index 54706599..33c953f8 100644 --- a/tests/UnitTests/framework/index.php +++ b/tests/UnitTests/framework/index.php @@ -21,7 +21,8 @@ class TestFolder if(!empty($folder->subFolders) || !empty($folder->testFiles))
$this->subFolders[]=$folder;
}
- else if(is_file($fullpath) && strncmp($entry,'ut',2)===0)
+ else if(is_file($fullpath) && (strncmp($entry,'ut',2)===0
+ || preg_match('/test.*\.php/', strtolower($entry))))
{
$this->testFiles[$entry]="$rootUri/index.php?target=".strtr(substr($fullpath,strlen($rootPath)+1),"\\",'/');
}
@@ -46,7 +47,7 @@ function addTests($test,$path,$recursive) $dir=opendir($path);
while(($entry=readdir($dir))!==false)
{
- if(is_file($path.'/'.$entry) && strncmp($entry,'ut',2)===0)
+ if(is_file($path.'/'.$entry) && (strncmp($entry,'ut',2)===0||preg_match('/test.*\.php/', strtolower($entry))))
$test->addTestFile($path.'/'.$entry);
else if($entry!=='.' && $entry!=='..' && $entry!=='.svn' && is_dir($path.'/'.$entry) && $recursive)
addTests($test,$path.'/'.$entry,$recursive);
|