public function testRequestWithEnvVariables()
{
$request = new Request(array('env' => array('DOCUMENT_ROOT' => '/www', 'HTTP_HOST' => 'foo.com', 'HTTPS' => 'on', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'REQUEST_URI' => '/lithium/app/hello/world?page=1', 'PHP_SELF' => '/lithium/app/index.php')));
$this->assertIdentical('foo.com', $request->host);
$this->assertIdentical('https', $request->scheme);
$this->assertIdentical('HTTP/1.0', $request->protocol);
$this->assertIdentical('1.0', $request->version);
$this->assertIdentical('/hello/world', $request->url);
$this->assertIdentical('/lithium/app', $request->env('base'));
}