org\bovigo\vfs\vfsStreamWrapperFileTestCase::createsNonExistingFileWhenOpenedWithModeC PHP Method

createsNonExistingFileWhenOpenedWithModeC() public method

    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));
    }