public function testServer() { $h = new Url($this->container); $this->assertEquals('http://localhost/', $h->server()); $_SERVER['PHP_SELF'] = '/'; $_SERVER['SERVER_NAME'] = 'kb'; $_SERVER['SERVER_PORT'] = 1234; $this->assertEquals('http://kb:1234/', $h->server()); }