You are here

public function StringBasedFileContentTestCase::canSeekToGivenOffset in Zircon Profile 8.0

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

@test

File

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

Class

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

Namespace

org\bovigo\vfs\content

Code

public function canSeekToGivenOffset() {
  $this
    ->assertTrue($this->stringBasedFileContent
    ->seek(5, SEEK_SET));
  $this
    ->assertEquals('rbaz', $this->stringBasedFileContent
    ->read(10));
}