Example #1
0
 public function testRoot()
 {
     $request = new Request();
     $request->init(array(), array(), array(), array(), array('REQUEST_URI' => '/foo/bar', 'HTTP_HOST' => 'foo.bar'));
     $this->assertEquals('http://foo.bar/foo/bar', $request->root());
 }