lithium\tests\cases\action\RequestTest::testOverridingOfEnvVariables PHP Method

testOverridingOfEnvVariables() public method

    public function testOverridingOfEnvVariables()
    {
        $request = new Request(array('env' => array('HTTP_HOST' => 'foo.com', 'HTTPS' => 'on', 'SERVER_PROTOCOL' => 'HTTP/1.0'), 'host' => 'bar.com', 'scheme' => 'http', 'protocol' => 'HTTP/1.1'));
        $this->assertIdentical('bar.com', $request->host);
        $this->assertIdentical('http', $request->scheme);
        $this->assertIdentical('HTTP/1.1', $request->protocol);
        $this->assertIdentical('1.1', $request->version);
    }
RequestTest