Definition at line 50 of file Mock.php.
HTTP_Request2_Adapter_Mock::addResponse |
( |
|
$response, |
|
|
|
$url = null |
|
) |
| |
Adds response to the queue
- Parameters
-
- Exceptions
-
Definition at line 107 of file Mock.php.
static HTTP_Request2_Adapter_Mock::createResponseFromFile |
( |
|
$fp | ) |
|
|
static |
static HTTP_Request2_Adapter_Mock::createResponseFromString |
( |
|
$str | ) |
|
|
static |
HTTP_Request2_Adapter_Mock::sendRequest |
( |
HTTP_Request2 |
$request | ) |
|
Returns the next response from the queue built by addResponse()
Only responses without explicit URLs or with URLs equal to request URL will be considered. If matching response is not found or the queue is empty then default empty response with status 400 will be returned, if an Exception object was added to the queue it will be thrown.
- Parameters
-
- Returns
- HTTP_Request2_Response
- Exceptions
-
Definition at line 71 of file Mock.php.
HTTP_Request2_Adapter_Mock::$responses = array() |
|
protected |
The documentation for this class was generated from the following file:
- libs/PEAR.1.9.5/HTTP/Request2/Adapter/Mock.php