summaryrefslogtreecommitdiffstats
path: root/tests/lib/files
diff options
context:
space:
mode:
authorjknockaert <jasper@knockaert.nl>2015-04-21 18:09:21 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-24 16:44:00 +0200
commit27ea23ea6b88ee73ec2826212336d20e9c209029 (patch)
tree80bb3b3c73da357c656590e8aab0f33c7ae347de /tests/lib/files
parentd6841aa70696d8f44a2656293bf7efe860073c06 (diff)
downloadnextcloud-server-27ea23ea6b88ee73ec2826212336d20e9c209029.tar.gz
nextcloud-server-27ea23ea6b88ee73ec2826212336d20e9c209029.zip
Update encryption.php
Diffstat (limited to 'tests/lib/files')
-rw-r--r--tests/lib/files/stream/encryption.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/lib/files/stream/encryption.php b/tests/lib/files/stream/encryption.php
index fdd710e62fa..36e668a218e 100644
--- a/tests/lib/files/stream/encryption.php
+++ b/tests/lib/files/stream/encryption.php
@@ -167,20 +167,20 @@ class Encryption extends \Test\TestCase {
// fclose($stream);
// }
- public function testRewind() {
- $fileName = tempnam("/tmp", "FOO");
- $stream = $this->getStream($fileName, 'w+', 0);
- $this->assertEquals(6, fwrite($stream, 'foobar'));
- $this->assertEquals(TRUE, rewind($stream));
- $this->assertEquals('foobar', fread($stream, 100));
- $this->assertEquals(TRUE, rewind($stream));
- $this->assertEquals(3, fwrite($stream, 'bar'));
- fclose($stream);
-
- $stream = $this->getStream($fileName, 'r', 6);
- $this->assertEquals('barbar', fread($stream, 100));
- fclose($stream);
- }
+// public function testRewind() {
+// $fileName = tempnam("/tmp", "FOO");
+// $stream = $this->getStream($fileName, 'w+', 0);
+// $this->assertEquals(6, fwrite($stream, 'foobar'));
+// $this->assertEquals(TRUE, rewind($stream));
+// $this->assertEquals('foobar', fread($stream, 100));
+// $this->assertEquals(TRUE, rewind($stream));
+// $this->assertEquals(3, fwrite($stream, 'bar'));
+// fclose($stream);
+//
+// $stream = $this->getStream($fileName, 'r', 6);
+// $this->assertEquals('barbar', fread($stream, 100));
+// fclose($stream);
+// }
public function testSeek() {
$fileName = tempnam("/tmp", "FOO");