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.
array $_headers = 'array'
Request headers
string $_method = 'GET'
Request method
string|null $_rawBody = ''
Raw POST body
array $_validMethodTypes = 'array'
Valid request method types
_normalizeHeaderName(
string $name
)
:
string
Normalize a header name for setting and retrieval
clearCookies(
)
:
Zend_Controller_Request_HttpTestCase
Clear all cookies
clearHeaders(
)
:
Zend_Controller_Request_HttpTestCase
Clear request headers
clearPost(
)
:
Zend_Controller_Request_HttpTestCase
Clear POST values
clearQuery(
)
:
Zend_Controller_Request_HttpTestCase
Clear GET values
clearRawBody(
)
:
Zend_Controller_Request_HttpTestCase
Clear raw POST body
getHeader(
string $header, mixed $default
=
null
)
:
string|null
Get request header
getHeaders(
)
:
array
Get all request headers
getMethod(
)
:
string|null
Get request method
getRawBody(
)
:
string|null
Get RAW POST body
getRequestUri(
)
:
null|string
Get REQUEST_URI
setCookie(
string $key, mixed $value
)
:
Zend_Controller_Request_HttpTestCase
Set a cookie
setCookies(
array $cookies
)
:
void
Set multiple cookies at once
setHeader(
string $key, string $value
)
:
Zend_Controller_Request_HttpTestCase
Set a request header
setHeaders(
array $headers
)
:
Zend_Controller_Request_HttpTestCase
Set request headers
setMethod(
string $type
)
:
Zend_Controller_Request_HttpTestCase
Set request method
setRawBody(
string $content
)
:
Zend_Controller_Request_HttpTestCase
Set raw POST body