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