From aceda02887eb4a52188f0308c6404cc9f201ce79 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 18 Apr 2012 20:46:00 +0200 Subject: [PATCH] check if removed folders are really gone --- tests/lib/filestorage.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/lib/filestorage.php b/tests/lib/filestorage.php index 4858234a2d..b58e28cefd 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); } /**