public function testUnregisteringTheStreamWrapper() { $result = StreamWrapper::unregister(); $this->assertTrue($result); $this->assertNotContains('webdav', stream_get_wrappers()); $this->assertNotContains('webdavs', stream_get_wrappers()); }
/** * Register the WebDAV stream wrapper. * * @return bool Returns true on success or false on failure * @throws \RuntimeException If a stream wrapper has already been registered */ public function registerStreamWrapper() { return StreamWrapper::register($this->getContextOptions(), $this); }