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

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

    public function file_put_contentsNonExistingFileNonWritableDirectory()
    {
        vfsStreamWrapper::register();
        vfsStreamWrapper::setRoot(new vfsStreamDirectory('root', 00));
        $this->assertFalse(@file_put_contents(vfsStream::url('root/new.txt'), 'This does not work.'));
        $this->assertFalse(file_exists(vfsStream::url('root/new.txt')));
    }