blob: 16c03409958374427d0aeeb4d1726366570f5e5b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
namespace Sabre\HTTP;
class ResponseMock extends 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, $this->defaultHttpVersion);
}
function sendBody($body) {
$this->body = $body;
}
}
|