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(); }
public function tearDown() { Castle_RequestTransport::reset(); Castle_RequestTransport::setResponse(204, ''); }
public function tearDown() { Castle_RequestTransport::reset(); }