Lines Matching refs:server
15 $server = new Server($nodes);
16 $this->assertEquals($nodes[0], $server->tree->getNodeForPath('hello'));
30 $server = new Server($nodes);
39 $server = new Server(1);
46 $this->server->httpRequest = $request;
47 $this->server->exec();
66 $this->server->httpRequest = $request;
68 $this->server->exec();
92 $this->server->httpRequest = ($request);
93 $this->server->exec();
114 $this->server->setBaseUri('/blabla/');
115 $this->assertEquals('/blabla/',$this->server->getBaseUri());
116 $this->server->httpRequest = ($request);
117 $this->server->exec();
145 $this->server->setBaseUri($test);
147 $this->assertEquals($result, $this->server->getBaseUri());
189 $this->server->setBaseUri('/root/');
193 $this->assertEquals("\xc3\xa0fo\xc3\xb3",$this->server->calculateUri($uri));
197 $this->server->setBaseUri('/root');
201 $this->assertEquals("\xc3\xa0fo\xc3\xb3",$this->server->calculateUri($uri));
205 $this->server->setBaseUri('/');
209 $this->assertEquals("root/\xc3\xa0fo\xc3\xb3",$this->server->calculateUri($uri));
222 $this->server->setBaseUri('/path2/');
223 $this->server->calculateUri($uri);
237 $server = new Server();
238 $server->httpRequest = $httpRequest;
240 $this->assertEquals('/index.php/', $server->guessBaseUri());
255 $server = new Server();
256 $server->httpRequest = $httpRequest;
258 $this->assertEquals('/index.php/', $server->guessBaseUri());
290 $server = new Server();
291 $server->httpRequest = $httpRequest;
293 $this->assertEquals('/index.php/', $server->guessBaseUri());
304 $server = new Server();
305 $server->httpRequest = $httpRequest;
307 $this->assertEquals('/', $server->guessBaseUri());
318 $server = new Server();
319 $server->httpRequest = $httpRequest;
321 $this->assertEquals('/', $server->guessBaseUri());
337 $server = new Server();
338 $server->httpRequest = $httpRequest;
340 $this->assertEquals('/index.php/', $server->guessBaseUri());
356 $server = new Server();
357 $server->httpRequest = $httpRequest;
359 $server->guessBaseUri();
371 $this->server->httpRequest = $httpRequest;
372 $this->server->on('beforeMethod', [$this,'exceptionTrigger']);
373 $this->server->exec();
397 $this->server->httpRequest = ($request);
398 …$this->server->httpRequest->setBody('<?xml version="1.0"?><bla:myreport xmlns:bla="http://www.roof…
399 $this->server->exec();
420 $this->server->httpRequest = ($request);
421 …$this->server->httpRequest->setBody('<?xml version="1.0"?><bla:myreport xmlns:bla="http://www.roof…
422 $this->server->on('report', [$this,'reportHandler']);
423 $this->server->exec();
439 $this->server->httpResponse->setStatus(418);
440 $this->server->httpResponse->setHeader('testheader','testvalue');
449 $result = $this->server->getPropertiesForChildren('',[