Zend_Http_Client_Adapter_TestImplements interfaces:
A testing-purposes adapter.
Should be used to test all components that rely on Zend_Http_Client, without actually performing an HTTP request. You should instantiate this object manually, and then set it as the client's adapter. Then, you can set the expected response using the setResponse() method.
Located in /Zend/Http/Client/Adapter/Test.php (line 41)
string
write
(string $method, Zend_Uri_Http $uri, [string $http_ver = '1.1'], [array $headers = array()], [string $body = ''])
array
$config
= array() (line 48)
Parameters array
integer
$responseIndex
= 0 (line 63)
Current position in the response buffer
array
$responses
= array("HTTP/1.1 400 Bad Request\r\n\r\n") (line 56)
Buffer of responses to be returned by the read() method. Can be set using setResponse() and addResponse().
Constructor __construct (line 69)
Adapter constructor, currently empty. Config is set using setConfig()
addResponse (line 171)
Add another response to the response buffer.
close (line 148)
Close the connection (dummy)
connect (line 96)
Connect to the remote server
read (line 136)
Return the response set in $this->setResponse()
setConfig (line 77)
Set the configuration array for the adapter
setResponse (line 156)
Set the HTTP response(s) to be returned by this adapter
setResponseIndex (line 182)
Sets the position of the response buffer. Selects which response will be returned on the next call to read().
write (line 109)
Send request to the remote server
Documentation generated on Wed, 21 Feb 2007 12:00:57 -0800 by phpDocumentor 1.3.1