Exemplo n.º 1
0
 public function testUnregisteringTheStreamWrapper()
 {
     $result = StreamWrapper::unregister();
     $this->assertTrue($result);
     $this->assertNotContains('webdav', stream_get_wrappers());
     $this->assertNotContains('webdavs', stream_get_wrappers());
 }
Exemplo n.º 2
0
 /**
  * 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);
 }