Lines Matching refs:server
17 $server = new Server($root);
20 $server->checkPreconditions($httpRequest, $httpResponse);
29 $server = new Server($root);
32 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
42 $server = new Server($root);
45 $server->checkPreconditions($httpRequest, $httpResponse);
54 $server = new Server($root);
57 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
69 $server = new Server($root);
72 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
81 $server = new Server($root);
84 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
93 $server = new Server($root);
96 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
106 $server = new Server($root);
109 $server->checkPreconditions($httpRequest, $httpResponse);
118 $server = new Server($root);
121 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
130 $server = new Server($root);
133 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
143 $server = new Server($root);
146 $server->checkPreconditions($httpRequest, $httpResponse);
156 $server = new Server($root);
159 $server->checkPreconditions($httpRequest, $httpResponse);
168 $server = new Server($root);
170 $server->httpResponse = new HTTP\ResponseMock();
172 $this->assertFalse($server->checkPreconditions($httpRequest, $server->httpResponse));
173 $this->assertEquals(304, $server->httpResponse->getStatus());
174 $this->assertEquals(['ETag' => ['"abc123"']], $server->httpResponse->getHeaders());
184 $server = new Server($root);
185 $server->sapi = new HTTP\SapiMock();
188 $server->httpRequest = $httpRequest;
189 $server->httpResponse = new HTTP\ResponseMock();
191 $server->exec();
193 $this->assertFalse($server->checkPreconditions($httpRequest, $server->httpResponse));
194 $this->assertEquals(304, $server->httpResponse->getStatus());
198 ], $server->httpResponse->getHeaders());
208 $server = new Server($root);
213 $server->httpResponse = new HTTP\ResponseMock();
214 $this->assertFalse($server->checkPreconditions($httpRequest, $server->httpResponse));
216 $this->assertEquals(304, $server->httpResponse->status);
219 ), $server->httpResponse->getHeaders());
229 $server = new Server($root);
237 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
246 $server = new Server($root);
255 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
264 $server = new Server($root);
270 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
280 $server = new Server($root);
286 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));
297 $server = new Server($root);
303 $server->checkPreconditions($httpRequest, $httpResponse);
312 $server = new Server($root);
318 $this->assertTrue($server->checkPreconditions($httpRequest, $httpResponse));