public function LargeFileContentTestCase::writesDataAtOffsetWhenOffsetMoved in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/content/LargeFileContentTestCase.php \org\bovigo\vfs\content\LargeFileContentTestCase::writesDataAtOffsetWhenOffsetMoved()
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ content/ LargeFileContentTestCase.php, line 101
Class
Namespace
org\bovigo\vfs\contentCode
public function writesDataAtOffsetWhenOffsetMoved() {
$this->largeFileContent
->seek(50, SEEK_SET);
$this
->assertEquals(9, $this->largeFileContent
->write('foobarbaz'));
$this
->assertEquals(str_repeat(' ', 50) . 'foobarbaz' . str_repeat(' ', 41), $this->largeFileContent
->content());
}