Exemple #1
0
 /**
  * @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'));
 }
Exemple #2
0
 /**
  * @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'));
 }