aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/ClientMock.php
blob: d8b53a5a1287fd91dfca59f9e0db86631e75a1b5 (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
33
34
<?php

namespace Sabre\DAV;

use Sabre\HTTP\RequestInterface;

class ClientMock extends Client {

    public $request;
    public $response;

    public $url;
    public $curlSettings;

    /**
     * Just making this method public
     *
     * @param string $url
     * @return string
     */
    public function getAbsoluteUrl($url) {

        return parent::getAbsoluteUrl($url);

    }

    public function doRequest(RequestInterface $request) {

        $this->request = $request;
        return $this->response;

    }

}