diff options
author | jknockaert <jasper@knockaert.nl> | 2015-05-18 11:55:48 +0200 |
---|---|---|
committer | jknockaert <jasper@knockaert.nl> | 2015-05-18 11:55:48 +0200 |
commit | 62e6c46216c5d019ec5f4f49089c4f13ec2c8f2a (patch) | |
tree | abcaf9281525179a6bb706a271693bf214714261 | |
parent | 9a71eddaf926f5379090384c7e8e86a295da26bf (diff) | |
download | nextcloud-server-62e6c46216c5d019ec5f4f49089c4f13ec2c8f2a.tar.gz nextcloud-server-62e6c46216c5d019ec5f4f49089c4f13ec2c8f2a.zip |
correct testSeek
-rw-r--r-- | tests/lib/files/stream/encryption.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/files/stream/encryption.php b/tests/lib/files/stream/encryption.php index 7905d55530b..e1cf60c2720 100644 --- a/tests/lib/files/stream/encryption.php +++ b/tests/lib/files/stream/encryption.php @@ -200,10 +200,10 @@ class Encryption extends \Test\TestCase { $this->assertEquals('foofoobar', fread($stream, 100)); $this->assertEquals(-1, fseek($stream, 10)); $this->assertEquals(0, fseek($stream, 9)); - $this->assertEquals(-1, fseek($stream, -10, 'SEEK_CUR')); - $this->assertEquals(0, fseek($stream, -9, 'SEEK_CUR')); - $this->assertEquals(-1, fseek($stream, -10, 'SEEK_END')); - $this->assertEquals(0, fseek($stream, -9, 'SEEK_END')); + $this->assertEquals(-1, fseek($stream, -10, SEEK_CUR)); + $this->assertEquals(0, fseek($stream, -9, SEEK_CUR)); + $this->assertEquals(-1, fseek($stream, -10, SEEK_END)); + $this->assertEquals(0, fseek($stream, -9, SEEK_END)); fclose($stream); unlink($fileName); |