示例#1
0
 public function setUp()
 {
     $_SERVER = array();
     $_SERVER['HTTP_USER_AGENT'] = 'TestAgent';
     $_SERVER['REMOTE_ADDR'] = '8.8.8.8';
     Castle_RequestTransport::reset();
     $this->request = new Castle_Request();
 }
示例#2
0
 public function tearDown()
 {
     Castle_RequestTransport::reset();
     Castle_RequestTransport::setResponse(204, '');
 }
示例#3
0
 public function tearDown()
 {
     Castle_RequestTransport::reset();
 }