[Pkg-owncloud-commits] [owncloud] 59/215: enable testWriteWriteRead

David Prévot taffit at moszumanska.debian.org
Tue May 5 01:01:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 4554df2512aadbbed22650515c2fb5c85651ef42
Author: jknockaert <jasper at knockaert.nl>
Date:   Wed Apr 22 13:06:02 2015 +0200

    enable testWriteWriteRead
---
 tests/lib/files/stream/encryption.php | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/tests/lib/files/stream/encryption.php b/tests/lib/files/stream/encryption.php
index fdd710e..024185b 100644
--- a/tests/lib/files/stream/encryption.php
+++ b/tests/lib/files/stream/encryption.php
@@ -152,20 +152,20 @@ class Encryption extends \Test\TestCase {
 		unlink($fileName);
 	}
 
-//	public function testWriteWriteRead() {
-//		$fileName = tempnam("/tmp", "FOO");
-//		$stream = $this->getStream($fileName, 'w+', 0);
-//		$this->assertEquals(6, fwrite($stream, 'foobar'));
-//		fclose($stream);
-//
-//		$stream = $this->getStream($fileName, 'r+', 6);
-//		$this->assertEquals(3, fwrite($stream, 'bar'));
-//		fclose($stream);
-//
-//		$stream = $this->getStream($fileName, 'r', 6);
-//		$this->assertEquals('barbar', fread($stream, 100));
-//		fclose($stream);
-//	}
+	public function testWriteWriteRead() {
+		$fileName = tempnam("/tmp", "FOO");
+		$stream = $this->getStream($fileName, 'w+', 0);
+		$this->assertEquals(6, fwrite($stream, 'foobar'));
+		fclose($stream);
+
+		$stream = $this->getStream($fileName, 'r+', 6);
+		$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");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list