ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ClientMock.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\DAV;
4 
6 
7 class ClientMock extends Client {
8 
9  public $request;
10  public $response;
11 
12  public $url;
13  public $curlSettings;
14 
21  function getAbsoluteUrl($url) {
22 
23  return parent::getAbsoluteUrl($url);
24 
25  }
26 
28 
29  $this->request = $request;
30  return $this->response;
31 
32  }
33 
34 }
doRequest(RequestInterface $request)
Definition: ClientMock.php:27
The RequestInterface represents a HTTP request.
getAbsoluteUrl($url)
Just making this method public.
Definition: ClientMock.php:21
request($method, $url='', $body=null, array $headers=[])
Performs an actual HTTP request, and returns the result.
Definition: Client.php:369
SabreDAV DAV client.
Definition: Client.php:20