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