org\bovigo\vfs\vfsStreamWrapperFileTestCase::createsNonExistingFileWhenOpenedWithModeCplus PHP Метод

createsNonExistingFileWhenOpenedWithModeCplus() публичный Метод

    public function createsNonExistingFileWhenOpenedWithModeCplus()
    {
        $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));
    }