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
Detailsstring $_method = 'GET'Request method
Detailsstring|null $_rawBody = ''Raw POST body
Detailsarray $_validMethodTypes = 'array'Valid request method types
Details_normalizeHeaderName(
string $name
)
:
stringNormalize a header name for setting and retrieval
DetailsclearCookies(
)
:
Zend_Controller_Request_HttpTestCaseClear all cookies
DetailsclearHeaders(
)
:
Zend_Controller_Request_HttpTestCaseClear request headers
DetailsclearPost(
)
:
Zend_Controller_Request_HttpTestCaseClear POST values
DetailsclearQuery(
)
:
Zend_Controller_Request_HttpTestCaseClear GET values
DetailsclearRawBody(
)
:
Zend_Controller_Request_HttpTestCaseClear raw POST body
DetailsgetHeader(
string $header, mixed $default
=
null
)
:
string|nullGet request header
DetailsgetHeaders(
)
:
arrayGet all request headers
DetailsgetMethod(
)
:
string|nullGet request method
DetailsgetRawBody(
)
:
string|nullGet RAW POST body
DetailsgetRequestUri(
)
:
null|stringGet REQUEST_URI
DetailssetCookie(
string $key, mixed $value
)
:
Zend_Controller_Request_HttpTestCaseSet a cookie
DetailssetCookies(
array $cookies
)
:
voidSet multiple cookies at once
DetailssetHeader(
string $key, string $value
)
:
Zend_Controller_Request_HttpTestCaseSet a request header
DetailssetHeaders(
array $headers
)
:
Zend_Controller_Request_HttpTestCaseSet request headers
DetailssetMethod(
string $type
)
:
Zend_Controller_Request_HttpTestCaseSet request method
DetailssetRawBody(
string $content
)
:
Zend_Controller_Request_HttpTestCaseSet raw POST body
Details