aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/streamwrappers.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-09-07 15:22:01 +0200
commit3829460ab8cbb6de65c53583a20fd04cbe7927dd (patch)
tree4dc24845a5eb31b17510a621e14c15b51f16bf7b /tests/lib/streamwrappers.php
parent785aa751bb5f9a4bcdd677b96207550482e17d3c (diff)
downloadnextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.tar.gz
nextcloud-server-3829460ab8cbb6de65c53583a20fd04cbe7927dd.zip
adding space between) and {
Diffstat (limited to 'tests/lib/streamwrappers.php')
-rw-r--r--tests/lib/streamwrappers.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/streamwrappers.php b/tests/lib/streamwrappers.php
index 17a92c6658c..5d6fe8da826 100644
--- a/tests/lib/streamwrappers.php
+++ b/tests/lib/streamwrappers.php
@@ -21,19 +21,19 @@
*/
class Test_StreamWrappers extends UnitTestCase {
- public function testFakeDir(){
+ public function testFakeDir() {
$items=array('foo','bar');
OC_FakeDirStream::$dirs['test']=$items;
$dh=opendir('fakedir://test');
$result=array();
- while($file=readdir($dh)){
+ while($file=readdir($dh)) {
$result[]=$file;
$this->assertNotIdentical(false,array_search($file,$items));
}
$this->assertEqual(count($items),count($result));
}
- public function testStaticStream(){
+ public function testStaticStream() {
$sourceFile=OC::$SERVERROOT.'/tests/data/lorem.txt';
$staticFile='static://test';
$this->assertFalse(file_exists($staticFile));
@@ -45,7 +45,7 @@ class Test_StreamWrappers extends UnitTestCase {
$this->assertFalse(file_exists($staticFile));
}
- public function testCloseStream(){
+ public function testCloseStream() {
//ensure all basic stream stuff works
$sourceFile=OC::$SERVERROOT.'/tests/data/lorem.txt';
$tmpFile=OC_Helper::TmpFile('.txt');
@@ -66,13 +66,13 @@ class Test_StreamWrappers extends UnitTestCase {
try{
fclose($fh);
$this->fail('Expected exception');
- }catch(Exception $e){
+ }catch(Exception $e) {
$path=$e->getMessage();
$this->assertEqual($path,$tmpFile);
}
}
- public static function closeCallBack($path){
+ public static function closeCallBack($path) {
throw new Exception($path);
}
} \ No newline at end of file