public function vfsStreamWrapperFileTestCase::canNotReadFromWriteOnlyFileWithModeW in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php \org\bovigo\vfs\vfsStreamWrapperFileTestCase::canNotReadFromWriteOnlyFileWithModeW()
@test @group issue7 @group issue13
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperFileTestCase.php, line 260
Class
Namespace
org\bovigo\vfsCode
public function canNotReadFromWriteOnlyFileWithModeW() {
$fp = fopen($this->baz2URL, 'wb');
$this
->assertEquals('', fread($fp, 4096));
$this
->assertEquals(3, fwrite($fp, 'foo'));
fseek($fp, 0);
$this
->assertEquals('', fread($fp, 4096));
fclose($fp);
$this
->assertEquals('foo', file_get_contents($this->baz2URL));
}