You are here

public function LargeFileContentTestCase::writeDataInBetweenDoesNotIncreaseSize in Zircon Profile 8

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

@test

File

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

Class

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

Namespace

org\bovigo\vfs\content

Code

public function writeDataInBetweenDoesNotIncreaseSize() {
  $this->largeFileContent
    ->seek(50, SEEK_SET);
  $this
    ->assertEquals(9, $this->largeFileContent
    ->write('foobarbaz'));
  $this
    ->assertEquals(100, $this->largeFileContent
    ->size());
}