1 | <?php |
||
9 | class RequestTest extends TestCase |
||
10 | { |
||
11 | /** |
||
12 | * @covers OpCacheGUI\Network\Request::__construct |
||
13 | */ |
||
14 | public function testConstructCorrectInstance() |
||
20 | |||
21 | /** |
||
22 | * @covers OpCacheGUI\Network\Request::__construct |
||
23 | * @covers OpCacheGUI\Network\Request::get |
||
24 | */ |
||
25 | public function testGetNoQueryString() |
||
31 | |||
32 | /** |
||
33 | * @covers OpCacheGUI\Network\Request::__construct |
||
34 | * @covers OpCacheGUI\Network\Request::get |
||
35 | */ |
||
36 | public function testGetQueryString() |
||
42 | |||
43 | /** |
||
44 | * @covers OpCacheGUI\Network\Request::__construct |
||
45 | * @covers OpCacheGUI\Network\Request::path |
||
46 | */ |
||
47 | public function testPathEmptyRequestUri() |
||
53 | |||
54 | /** |
||
55 | * @covers OpCacheGUI\Network\Request::__construct |
||
56 | * @covers OpCacheGUI\Network\Request::path |
||
57 | */ |
||
58 | public function testPathOnlySlash() |
||
64 | |||
65 | /** |
||
66 | * @covers OpCacheGUI\Network\Request::__construct |
||
67 | * @covers OpCacheGUI\Network\Request::path |
||
68 | */ |
||
69 | public function testPathSingle() |
||
75 | |||
76 | /** |
||
77 | * @covers OpCacheGUI\Network\Request::__construct |
||
78 | * @covers OpCacheGUI\Network\Request::path |
||
79 | */ |
||
80 | public function testPathMultiple() |
||
86 | |||
87 | /** |
||
88 | * @covers OpCacheGUI\Network\Request::__construct |
||
89 | * @covers OpCacheGUI\Network\Request::path |
||
90 | */ |
||
91 | public function testPathTrailingSlash() |
||
97 | |||
98 | /** |
||
99 | * @covers OpCacheGUI\Network\Request::__construct |
||
100 | * @covers OpCacheGUI\Network\Request::getVerb |
||
101 | */ |
||
102 | public function testGetVerb() |
||
108 | |||
109 | /** |
||
110 | * @covers OpCacheGUI\Network\Request::__construct |
||
111 | * @covers OpCacheGUI\Network\Request::post |
||
112 | */ |
||
113 | public function testPost() |
||
119 | |||
120 | /** |
||
121 | * @covers OpCacheGUI\Network\Request::__construct |
||
122 | * @covers OpCacheGUI\Network\Request::getUrl |
||
123 | */ |
||
124 | public function testGetUrlSslEnabled() |
||
130 | |||
131 | /** |
||
132 | * @covers OpCacheGUI\Network\Request::__construct |
||
133 | * @covers OpCacheGUI\Network\Request::getUrl |
||
134 | */ |
||
135 | public function testGetUrlSslDisabled() |
||
141 | |||
142 | /** |
||
143 | * @covers OpCacheGUI\Network\Request::__construct |
||
144 | * @covers OpCacheGUI\Network\Request::getUrl |
||
145 | */ |
||
146 | public function testGetUrlSslDisabledIIS() |
||
152 | |||
153 | /** |
||
154 | * @covers OpCacheGUI\Network\Request::__construct |
||
155 | * @covers OpCacheGUI\Network\Request::getIp |
||
156 | */ |
||
157 | public function testGetIp() |
||
163 | } |
||
164 |