You are here

public function StringBasedFileContentTestCase::canSeekFromCurrentOffset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/content/StringBasedFileContentTestCase.php \org\bovigo\vfs\content\StringBasedFileContentTestCase::canSeekFromCurrentOffset()

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/content/StringBasedFileContentTestCase.php, line 149

Class

StringBasedFileContentTestCase
Test for org\bovigo\vfs\content\StringBasedFileContent.

Namespace

org\bovigo\vfs\content

Code

public function canSeekFromCurrentOffset() {
  $this
    ->assertTrue($this->stringBasedFileContent
    ->seek(5, SEEK_SET));
  $this
    ->assertTrue($this->stringBasedFileContent
    ->seek(2, SEEK_CUR));
  $this
    ->assertEquals('az', $this->stringBasedFileContent
    ->read(10));
}