summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/filestorage.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/filestorage.php b/tests/lib/filestorage.php
index 4858234a2d8..b58e28cefde 100644
--- a/tests/lib/filestorage.php
+++ b/tests/lib/filestorage.php
@@ -68,6 +68,15 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->assertFalse($this->instance->file_exists('/folder'));
$this->assertFalse($this->instance->rmdir('/folder'));//cant remove non existing folders
+
+ $dh=$this->instance->opendir('/');
+ $content=array();
+ while($file=readdir($dh)){
+ if($file!='.' and $file!='..'){
+ $content[]=$file;
+ }
+ }
+ $this->assertEqual(array(),$content);
}
/**