summaryrefslogtreecommitdiffstats
path: root/tests/lib/streamwrappers.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/streamwrappers.php')
-rw-r--r--tests/lib/streamwrappers.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/streamwrappers.php b/tests/lib/streamwrappers.php
index f864a9e3611..89b2785fca6 100644
--- a/tests/lib/streamwrappers.php
+++ b/tests/lib/streamwrappers.php
@@ -22,7 +22,7 @@
class Test_StreamWrappers extends UnitTestCase {
public function testFakeDir() {
- $items=array('foo','bar');
+ $items=array('foo', 'bar');
OC_FakeDirStream::$dirs['test']=$items;
$dh=opendir('fakedir://test');
$result=array();
@@ -60,9 +60,9 @@ class Test_StreamWrappers extends UnitTestCase {
//test callback
$tmpFile=OC_Helper::TmpFile('.txt');
$file='close://'.$tmpFile;
- OC_CloseStreamWrapper::$callBacks[$tmpFile]=array('Test_StreamWrappers','closeCallBack');
- $fh=fopen($file,'w');
- fwrite($fh,'asd');
+ OC_CloseStreamWrapper::$callBacks[$tmpFile]=array('Test_StreamWrappers', 'closeCallBack');
+ $fh=fopen($file, 'w');
+ fwrite($fh, 'asd');
try{
fclose($fh);
$this->fail('Expected exception');