public function vfsStreamWrapperFileTestCase::createsNonExistingFileWhenOpenedWithModeC 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::createsNonExistingFileWhenOpenedWithModeC()
@test @group issue_30
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperFileTestCase.php, line 335
Class
Namespace
org\bovigo\vfsCode
public function createsNonExistingFileWhenOpenedWithModeC() {
$vfsFile = vfsStream::url('foo/tobecreated.txt');
$fp = fopen($vfsFile, 'cb');
fwrite($fp, 'some content');
$this
->assertTrue($this->foo
->hasChild('tobecreated.txt'));
fclose($fp);
$this
->assertEquals('some content', file_get_contents($vfsFile));
}