Page MenuHomePhabricator

ClientMock.php
No OneTemporary

ClientMock.php

<?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;
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Dec 21, 1:17 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
914717
Default Alt Text
ClientMock.php (529 B)

Event Timeline