_requests = array(); } public function popRequest() { if (count($this->_requests)) return array_pop($this->_requests); else return NULL; } public function write($method, $uri, $http_ver = '1.1', $headers = array(), $body = '') { $request = new Test_Zend_Gdata_MockHttpClient_Request(); $request->method = $method; $request->uri = $uri; $request->http_ver = $http_ver; $request->headers = $headers; $request->body = $body; array_push($this->_requests, $request); return parent::write($method, $uri, $http_ver, $headers, $body); } }