org\bovigo\vfs\vfsStreamWrapperFileTestCase::createsNonExistingFileWhenOpenedWithModeC PHP 메소드

createsNonExistingFileWhenOpenedWithModeC() 공개 메소드

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