Example #1
0
 public function testUrl()
 {
     $request = new Request();
     $request->init(array(), array(), array(), array(), array('REQUEST_URI' => '/foo/bar?baz', 'HTTP_HOST' => 'foo.bar'));
     $this->assertEquals('/foo/bar', $request->url());
 }