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

canNotOverwriteExistingFileWithModeX() 공개 메소드

    public function canNotOverwriteExistingFileWithModeX()
    {
        $vfsFile = vfsStream::url('foo/overwrite.txt');
        file_put_contents($vfsFile, 'test');
        $this->assertFalse(@fopen($vfsFile, 'xb'));
        $this->assertEquals('test', file_get_contents($vfsFile));
    }