Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Controller_Request_HttpTestCase
HTTP request object for use with Zend_Controller family.

_normalizeHeaderName(
string $name
)
:
string
Normalize a header name for setting and retrieval
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
string |

clearCookies(
)
:
\Zend_Controller_Request_HttpTestCase
Clear all cookies
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

clearHeaders(
)
:
\Zend_Controller_Request_HttpTestCase
Clear request headers
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

clearPost(
)
:
\Zend_Controller_Request_HttpTestCase
Clear POST values
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

clearQuery(
)
:
\Zend_Controller_Request_HttpTestCase
Clear GET values
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

clearRawBody(
)
:
\Zend_Controller_Request_HttpTestCase
Clear raw POST body
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

getHeader(
string $header, mixed $default
=
null
)
:
string|null
Get request header
Name | Type | Description |
---|---|---|
$header | string | |
$default | mixed |
Type | Description |
---|---|
string|null |

setCookie(
string $key, mixed $value
)
:
\Zend_Controller_Request_HttpTestCase
Set a cookie
Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

setCookies(
array $cookies
)
:
void
Set multiple cookies at once
Name | Type | Description |
---|---|---|
$cookies | array |

setHeader(
string $key, string $value
)
:
\Zend_Controller_Request_HttpTestCase
Set a request header
Name | Type | Description |
---|---|---|
$key | string | |
$value | string |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

setHeaders(
array $headers
)
:
\Zend_Controller_Request_HttpTestCase
Set request headers
Name | Type | Description |
---|---|---|
$headers | array |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

setMethod(
string $type
)
:
\Zend_Controller_Request_HttpTestCase
Set request method
Name | Type | Description |
---|---|---|
$type | string |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |

setRawBody(
string $content
)
:
\Zend_Controller_Request_HttpTestCase
Set raw POST body
Name | Type | Description |
---|---|---|
$content | string |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |