Controller/Request/HttpTestCase.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Controller
- Version
- $Id$
\Zend_Controller_Request_HttpTestCase
Package: Zend_Controller\Request
Zend_Controller_Request_HttpTestCase
HTTP request object for use with Zend_Controller family.
- Parent(s)
- \Zend_Controller_Request_Http < \Zend_Controller_Request_Abstract
- Uses
Properties
Methods
_normalizeHeaderName(string $name) : string
Normalize a header name for setting and retrieval
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
string |
clearCookies() : \Zend_Controller_Request_HttpTestCase
Clear all cookies
Returns
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
clearHeaders() : \Zend_Controller_Request_HttpTestCase
Clear request headers
Returns
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
clearPost() : \Zend_Controller_Request_HttpTestCase
Clear POST values
Returns
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
clearQuery() : \Zend_Controller_Request_HttpTestCase
Clear GET values
Returns
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
clearRawBody() : \Zend_Controller_Request_HttpTestCase
Clear raw POST body
Returns
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
getHeader(string $header, mixed $default = null) : string | null
Get request header
Parameters
Returns
Name | Type | Description |
---|---|---|
$header | string | |
$default | mixed |
Type | Description |
---|---|
string | null |
setCookie(string $key, mixed $value) : \Zend_Controller_Request_HttpTestCase
Set a cookie
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
setCookies(array $cookies) : void
Set multiple cookies at once
Parameters
Name | Type | Description |
---|---|---|
$cookies | array |
setHeader(string $key, string $value) : \Zend_Controller_Request_HttpTestCase
Set a request header
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | |
$value | string |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
setHeaders(array $headers) : \Zend_Controller_Request_HttpTestCase
Set request headers
Parameters
Returns
Name | Type | Description |
---|---|---|
$headers | array |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
setMethod(string $type) : \Zend_Controller_Request_HttpTestCase
Set request method
Parameters
Returns
Name | Type | Description |
---|---|---|
$type | string |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |
setRawBody(string $content) : \Zend_Controller_Request_HttpTestCase
Set raw POST body
Parameters
Returns
Name | Type | Description |
---|---|---|
$content | string |
Type | Description |
---|---|
\Zend_Controller_Request_HttpTestCase |