コード例 #1
0
ファイル: StreamWrapperTest.php プロジェクト: samizdam/WebDAV
 public function testUnregisteringTheStreamWrapper()
 {
     $result = StreamWrapper::unregister();
     $this->assertTrue($result);
     $this->assertNotContains('webdav', stream_get_wrappers());
     $this->assertNotContains('webdavs', stream_get_wrappers());
 }
コード例 #2
0
ファイル: WebDavClient.php プロジェクト: samizdam/WebDAV
 /**
  * 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);
 }