]> git.mxchange.org Git - friendica-addons.git/blobdiff - dav/SabreDAV/tests/Sabre/DAV/ClientMock.php
Initial Release of the calendar plugin
[friendica-addons.git] / dav / SabreDAV / tests / Sabre / DAV / ClientMock.php
diff --git a/dav/SabreDAV/tests/Sabre/DAV/ClientMock.php b/dav/SabreDAV/tests/Sabre/DAV/ClientMock.php
new file mode 100644 (file)
index 0000000..83c51a3
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+class Sabre_DAV_ClientMock extends Sabre_DAV_Client {
+
+    public $response;
+
+    public $url;
+    public $curlSettings;
+
+    protected function curlRequest($url, $curlSettings) {
+
+        $this->url = $url;
+        $this->curlSettings = $curlSettings;
+        return $this->response;
+
+    }
+
+    /**
+     * Just making this method public
+     *
+     * @param string $url
+     * @return string
+     */
+    public function getAbsoluteUrl($url) {
+
+        return parent::getAbsoluteUrl($url);
+
+    }
+
+}