示例#1
0
 public function testIp()
 {
     global $_SERVER;
     $_SERVER = array('REMOTE_ADDR' => '127.0.0.1');
     $connector = new Connector('foo', new AfsService(42));
     $query = new AfsAcpQuery();
     $url = $connector->build_url(null, $query->get_parameters());
     $this->assertFalse(strpos($url, urlencode('afs:ip')) === False);
 }