-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMessageMock.php
81 lines (67 loc) · 1.82 KB
/
MessageMock.php
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/*
* This file is part of Aplus Framework HTTP Library.
*
* (c) Natan Felles <natanfelles@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\HTTP;
use Framework\HTTP\Cookie;
use Framework\HTTP\Message;
class MessageMock extends Message
{
public function setProtocol(string $protocol) : static
{
return parent::setProtocol($protocol);
}
public function setHeader(string $name, string $value) : static
{
return parent::setHeader($name, $value);
}
public function setHeaders(array $headers) : static
{
return parent::setHeaders($headers);
}
public function appendHeader(string $name, string $value) : static
{
return parent::appendHeader($name, $value);
}
public function removeHeader(string $name) : static
{
return parent::removeHeader($name);
}
public function removeHeaders() : static
{
return parent::removeHeaders();
}
public function removeHeadersByNames(array $names) : static
{
return parent::removeHeadersByNames($names);
}
public function setBody(?string $body) : static
{
return parent::setBody($body);
}
public function setCookie(Cookie $cookie) : static
{
return parent::setCookie($cookie);
}
public function setCookies(array $cookies) : static
{
return parent::setCookies($cookies);
}
public function removeCookie(string $name) : static
{
return parent::removeCookie($name);
}
public function removeCookies(array $names) : static
{
return parent::removeCookies($names);
}
public function parseContentType() : ?string
{
return parent::parseContentType();
}
}