public function vfsStreamWrapperFileTestCase::canOverwriteNonExistingFileWithModeX 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::canOverwriteNonExistingFileWithModeX()
@test @group issue7 @group issue13
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperFileTestCase.php, line 189
Class
Namespace
org\bovigo\vfsCode
public function canOverwriteNonExistingFileWithModeX() {
$vfsFile = vfsStream::url('foo/overwrite.txt');
$fp = fopen($vfsFile, 'xb');
fwrite($fp, 'test');
fclose($fp);
$this
->assertEquals('test', file_get_contents($vfsFile));
}