summaryrefslogtreecommitdiffstats
path: root/tests/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-14 01:22:58 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-14 01:23:10 +0200
commit141ffbb1f53f465e64125a020dee6304075a51aa (patch)
tree9915baa33e68f704d5d8cd67546cf162873834e1 /tests/index.php
parentf6eb7c120538bea8e488a868f9f3d99906a1ea0f (diff)
downloadnextcloud-server-141ffbb1f53f465e64125a020dee6304075a51aa.tar.gz
nextcloud-server-141ffbb1f53f465e64125a020dee6304075a51aa.zip
small fix in filesystem test
Diffstat (limited to 'tests/index.php')
-rw-r--r--tests/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/index.php b/tests/index.php
index 5e0dbc2c838..30ebde11235 100644
--- a/tests/index.php
+++ b/tests/index.php
@@ -30,7 +30,7 @@ require_once('testcase.php');
require_once('template.php');
$testCases=loadFiles(__DIR__,array('index.php','templates'));
-
+ob_end_clean();
$testResults=array();
foreach($testCases as $testCaseClass){
$testCase=new $testCaseClass();
@@ -65,10 +65,10 @@ function loadFiles($path,$exclude=false){
$dh=opendir($path);
while($file=readdir($dh)){
if($file!='.' && $file!='..' && array_search($file,$exclude)===false){
- if(is_file($path.'/'.$file)){
+ if(is_file($path.'/'.$file) and substr($file,-3)=='php'){
$result=require_once($path.'/'.$file);
$results[]=$result;
- }else{
+ }elseif(is_dir($path.'/'.$file)){
$subResults=loadFiles($path.'/'.$file);
$results=array_merge($results,$subResults);
}