summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjknockaert <jasper@knockaert.nl>2015-04-22 12:52:01 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-04-24 16:44:00 +0200
commit18a1225b0c0a8c44353a7f262b33aee2b5896f46 (patch)
treed653e221652f43006f110c570083de9bfdc4ecc0 /tests
parent49df8ef525c11e6468a65fd705fef9e0e3a71374 (diff)
downloadnextcloud-server-18a1225b0c0a8c44353a7f262b33aee2b5896f46.tar.gz
nextcloud-server-18a1225b0c0a8c44353a7f262b33aee2b5896f46.zip
enable testRewind
Diffstat (limited to 'tests')
-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 36e668a218e..fdd710e62fa 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");