mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
correct testSeek
This commit is contained in:
parent
9a71eddaf9
commit
62e6c46216
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue