aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/ClientMock.php
blob: 6e74e6ec01576e3ed208d20a7f5fbd9f9665428c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

namespace Sabre\DAV;

class ClientMock extends 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);

    }

}