diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/UnitTests/framework/common.php | 2 | ||||
-rw-r--r-- | tests/UnitTests/framework/index.php | 4 |
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);
|