/** * @depends testSetupHttp */ public function testGetValue(Orinoco\Http $http) { $this->assertEquals('/foo/bar', $http->getValue('REQUEST_URI')); $this->assertEquals('127.0.0.1', $http->getValue('REMOTE_ADDR')); }
/** * @depends testResolveClass */ public function testResolveHttpGetValue(Orinoco\Http $http) { $this->assertEquals('www-data', $http->getValue('USER')); $this->assertEquals('/var/www', $http->getValue('HOME')); $this->assertEquals('127.0.0.1', $http->getValue('REMOTE_ADDR')); }