mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 00:43:44 +00:00
28 lines
423 B
PHP
28 lines
423 B
PHP
|
<?php
|
||
|
|
||
|
class Sabre_HTTP_ResponseMock extends Sabre_HTTP_Response {
|
||
|
|
||
|
public $headers = array();
|
||
|
public $status = '';
|
||
|
public $body = '';
|
||
|
|
||
|
function setHeader($name,$value,$overwrite = true) {
|
||
|
|
||
|
$this->headers[$name] = $value;
|
||
|
|
||
|
}
|
||
|
|
||
|
function sendStatus($code) {
|
||
|
|
||
|
$this->status = $this->getStatusMessage($code);
|
||
|
|
||
|
}
|
||
|
|
||
|
function sendBody($body) {
|
||
|
|
||
|
$this->body = $body;
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|