2013-10-21 22:46:31 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Sabre\DAV;
|
|
|
|
|
2016-05-11 00:26:44 +00:00
|
|
|
use Sabre\HTTP\RequestInterface;
|
|
|
|
|
2013-10-21 22:46:31 +00:00
|
|
|
class ClientMock extends Client {
|
|
|
|
|
2016-05-11 00:26:44 +00:00
|
|
|
public $request;
|
2013-10-21 22:46:31 +00:00
|
|
|
public $response;
|
|
|
|
|
|
|
|
public $url;
|
|
|
|
public $curlSettings;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Just making this method public
|
|
|
|
*
|
|
|
|
* @param string $url
|
|
|
|
* @return string
|
|
|
|
*/
|
2016-05-28 15:46:24 +00:00
|
|
|
function getAbsoluteUrl($url) {
|
2013-10-21 22:46:31 +00:00
|
|
|
|
|
|
|
return parent::getAbsoluteUrl($url);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-05-28 15:46:24 +00:00
|
|
|
function doRequest(RequestInterface $request) {
|
2016-05-11 00:26:44 +00:00
|
|
|
|
|
|
|
$this->request = $request;
|
|
|
|
return $this->response;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2013-10-21 22:46:31 +00:00
|
|
|
}
|