diff options
Diffstat (limited to 'tests/lib/filesystem.php')
-rw-r--r-- | tests/lib/filesystem.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/filesystem.php b/tests/lib/filesystem.php index 72af0835788..1cfa35e305d 100644 --- a/tests/lib/filesystem.php +++ b/tests/lib/filesystem.php @@ -29,23 +29,23 @@ class Test_Filesystem extends UnitTestCase{ /** * @return array */ - private function getStorageData(){ + private function getStorageData() { $dir=OC_Helper::tmpFolder(); $this->tmpDirs[]=$dir; return array('datadir'=>$dir); } - public function tearDown(){ - foreach($this->tmpDirs as $dir){ + public function tearDown() { + foreach($this->tmpDirs as $dir) { OC_Helper::rmdirr($dir); } } - public function setUp(){ + public function setUp() { OC_Filesystem::clearMounts(); } - public function testMount(){ + public function testMount() { OC_Filesystem::mount('OC_Filestorage_Local',self::getStorageData(),'/'); $this->assertEqual('/',OC_Filesystem::getMountPoint('/')); $this->assertEqual('/',OC_Filesystem::getMountPoint('/some/folder')); @@ -60,14 +60,14 @@ class Test_Filesystem extends UnitTestCase{ $this->assertEqual('folder',OC_Filesystem::getInternalPath('/some/folder')); } - public function testNormalize(){ + public function testNormalize() { $this->assertEqual('/path',OC_Filesystem::normalizePath('/path/')); $this->assertEqual('/path/',OC_Filesystem::normalizePath('/path/',false)); $this->assertEqual('/path',OC_Filesystem::normalizePath('path')); $this->assertEqual('/path',OC_Filesystem::normalizePath('\path')); $this->assertEqual('/foo/bar',OC_Filesystem::normalizePath('/foo//bar/')); $this->assertEqual('/foo/bar',OC_Filesystem::normalizePath('/foo////bar')); - if(class_exists('Normalizer')){ + if(class_exists('Normalizer')) { $this->assertEqual("/foo/bar\xC3\xBC",OC_Filesystem::normalizePath("/foo/baru\xCC\x88")); } } |