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