Esempio n. 1
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);
 }
Esempio n. 2
0
 /**
  * @expectedException \RuntimeException
  * @expectedExceptionMessage A stream wrapper already exists for the 'webdav' protocol
  */
 public function testRegisteringAlreadyExistingStreamWrapper()
 {
     StreamWrapper::register();
 }