1<?php 2 3namespace Sabre\DAV; 4 5use Sabre\HTTP\RequestInterface; 6 7class ClientMock extends Client { 8 9 public $request; 10 public $response; 11 12 public $url; 13 public $curlSettings; 14 15 /** 16 * Just making this method public 17 * 18 * @param string $url 19 * @return string 20 */ 21 public function getAbsoluteUrl($url) { 22 23 return parent::getAbsoluteUrl($url); 24 25 } 26 27 public function doRequest(RequestInterface $request) { 28 29 $this->request = $request; 30 return $this->response; 31 32 } 33 34} 35