summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2005-11-10 16:50:52 +0000
committerxue <>2005-11-10 16:50:52 +0000
commitb7eacfc49c2b15aef3a5dd7b71b826a045e7e59b (patch)
treec95dcecef2302c4824315bc29f1b5803886f2b06
parent55c4ac1bfe565f1ca7f537fdd8b7a201be28e581 (diff)
Fixed issues with svn directories.
-rw-r--r--tests/UnitTests/framework/common.php2
-rw-r--r--tests/UnitTests/framework/index.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/UnitTests/framework/common.php b/tests/UnitTests/framework/common.php
index dc268e28..71d6949e 100644
--- a/tests/UnitTests/framework/common.php
+++ b/tests/UnitTests/framework/common.php
@@ -17,7 +17,7 @@ class Prado extends PradoBase
function __autoload($className)
{
- require_once($className);
+ require_once($className.Prado::CLASS_FILE_EXT);
}
error_reporting(E_ALL);
diff --git a/tests/UnitTests/framework/index.php b/tests/UnitTests/framework/index.php
index 802e979e..a8431e91 100644
--- a/tests/UnitTests/framework/index.php
+++ b/tests/UnitTests/framework/index.php
@@ -15,7 +15,7 @@ class TestFolder
while(($entry=readdir($dir))!==false)
{
$fullpath="$path/$entry";
- if($entry!=='.' && $entry!=='..' && is_dir($fullpath))
+ if($entry!=='.' && $entry!=='..' && $entry!=='.svn' && is_dir($fullpath))
{
$folder=new TestFolder($fullpath,$rootPath,$rootUri);
if(!empty($folder->subFolders) || !empty($folder->testFiles))
@@ -48,7 +48,7 @@ function addTests($test,$path,$recursive)
{
if(is_file($path.'/'.$entry) && strncmp($entry,'ut',2)===0)
$test->addTestFile($path.'/'.$entry);
- else if($entry!=='.' && $entry!=='..' && is_dir($path.'/'.$entry) && $recursive)
+ else if($entry!=='.' && $entry!=='..' && $entry!=='.svn' && is_dir($path.'/'.$entry) && $recursive)
addTests($test,$path.'/'.$entry,$recursive);
}
closedir($dir);