ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ClientMock.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\DAV;
4
6
7class ClientMock extends Client {
8
9 public $request;
10 public $response;
11
12 public $url;
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}
An exception for terminatinating execution or to throw for unit testing.
doRequest(RequestInterface $request)
This method is responsible for performing a single request.
Definition: ClientMock.php:27
getAbsoluteUrl($url)
Just making this method public.
Definition: ClientMock.php:21
SabreDAV DAV client.
Definition: Client.php:20
request($method, $url='', $body=null, array $headers=[])
Performs an actual HTTP request, and returns the result.
Definition: Client.php:369
The RequestInterface represents a HTTP request.