public function testRequestWithNoGlobals()
{
$_SERVER = 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'));
$request = new Request(array('globals' => false));
$this->assertIdentical('localhost', $request->host);
$this->assertIdentical('http', $request->scheme);
$this->assertIdentical('HTTP/1.1', $request->protocol);
$this->assertIdentical('1.1', $request->version);
$this->assertIdentical('/', $request->url);
$this->assertIdentical('', $request->env('base'));
}