Ejemplo n.º 1
0
 function test_deleteRecursive_keepsRootdir()
 {
     $dir = $this->getPath();
     $this->assertFileExists("{$dir}/subdir/file.txt");
     Directory::deleteRecursive($dir, FALSE);
     $this->assertFileNotExists("{$dir}/subdir/file.txt");
     $this->assertFileNotExists("{$dir}/subdir");
     $this->assertFileExists("{$dir}");
 }