You are here

public function LargeFileContentTestCase::writesDataAfterEndWhenOffsetAfterEnd in Zircon Profile 8.0

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

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/content/LargeFileContentTestCase.php, line 147

Class

LargeFileContentTestCase
Test for org\bovigo\vfs\content\LargeFileContent.

Namespace

org\bovigo\vfs\content

Code

public function writesDataAfterEndWhenOffsetAfterEnd() {
  $this->largeFileContent
    ->seek(0, SEEK_END);
  $this
    ->assertEquals(9, $this->largeFileContent
    ->write('foobarbaz'));
  $this
    ->assertEquals(str_repeat(' ', 100) . 'foobarbaz', $this->largeFileContent
    ->content());
}