org\bovigo\vfs\vfsStreamWrapperFileTestCase::createsNonExistingFileWhenOpenedWithModeC PHP Méthode

createsNonExistingFileWhenOpenedWithModeC() public méthode

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