You are here

public function StringBasedFileContentTestCase::writeOverwritesExistingContentWhenOffsetNotAtEof 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::writeOverwritesExistingContentWhenOffsetNotAtEof()

@test

File

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

Class

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

Namespace

org\bovigo\vfs\content

Code

public function writeOverwritesExistingContentWhenOffsetNotAtEof() {
  $this
    ->assertEquals(3, $this->stringBasedFileContent
    ->write('bar'));
  $this
    ->assertEquals('barbarbaz', $this->stringBasedFileContent
    ->content());
}