API Documentation

Controller/Request/HttpTestCase.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Controller
version
$Id: HttpTestCase.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Controller_Request_HttpTestCase

Description

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

Extends from
Zend_Controller_Request_Http
package
Zend_Controller
subpackage
Request
uses
Zend_Controller_Request_Http
Properties
$_headers
$_method
$_rawBody
$_validMethodTypes
Methods
clearQuery
clearPost
setRawBody
getRawBody
clearRawBody
setCookie
setCookies
clearCookies
setMethod
getMethod
setHeader
setHeaders
getHeader
getHeaders
clearHeaders
getRequestUri
_normalizeHeaderName

Description

Zend_Controller_Request_HttpTestCase

HTTP request object for use with Zend_Controller family.

Properties

$_headers

array $_headers = 'array'

Request headers

Details

$_headers
array
visibility
protected
default
array
final
false
static
false

$_method

string $_method = 'GET'

Request method

Details

$_method
string
visibility
protected
default
GET
final
false
static
false

$_rawBody

string|null $_rawBody = ''

Raw POST body

Details

$_rawBody
string|null
visibility
protected
default
final
false
static
false

$_validMethodTypes

array $_validMethodTypes = 'array'

Valid request method types

Details

$_validMethodTypes
array
visibility
protected
default
array
final
false
static
false

Methods

_normalizeHeaderName

_normalizeHeaderName( string $name ) : string

Normalize a header name for setting and retrieval

Arguments
$name
string
Output
string
Details
visibility
protected
final
false
static
false

clearCookies

clearCookies( ) : Zend_Controller_Request_HttpTestCase

Clear all cookies

Details
visibility
public
final
false
static
false

clearHeaders

clearHeaders( ) : Zend_Controller_Request_HttpTestCase

Clear request headers

Details
visibility
public
final
false
static
false

clearPost

clearPost( ) : Zend_Controller_Request_HttpTestCase

Clear POST values

Details
visibility
public
final
false
static
false

clearQuery

clearQuery( ) : Zend_Controller_Request_HttpTestCase

Clear GET values

Details
visibility
public
final
false
static
false

clearRawBody

clearRawBody( ) : Zend_Controller_Request_HttpTestCase

Clear raw POST body

Details
visibility
public
final
false
static
false

getHeader

getHeader( string $header, mixed $default = null ) : string|null

Get request header

Arguments
$header
string
$default
mixed
Output
string|null
Details
visibility
public
final
false
static
false

getHeaders

getHeaders( ) : array

Get all request headers

Output
array
Details
visibility
public
final
false
static
false

getMethod

getMethod( ) : string|null

Get request method

Output
string|null
Details
visibility
public
final
false
static
false

getRawBody

getRawBody( ) : string|null

Get RAW POST body

Output
string|null
Details
visibility
public
final
false
static
false

getRequestUri

getRequestUri( ) : null|string

Get REQUEST_URI

Output
null|string
Details
visibility
public
final
false
static
false

setCookie

setCookie( string $key, mixed $value ) : Zend_Controller_Request_HttpTestCase

Set a cookie

Arguments
$key
string
$value
mixed
Details
visibility
public
final
false
static
false

setCookies

setCookies( array $cookies ) : void

Set multiple cookies at once

Arguments
$cookies
array
Details
visibility
public
final
false
static
false

setHeader

setHeader( string $key, string $value ) : Zend_Controller_Request_HttpTestCase

Set a request header

Arguments
$key
string
$value
string
Details
visibility
public
final
false
static
false

setHeaders

setHeaders( array $headers ) : Zend_Controller_Request_HttpTestCase

Set request headers

Arguments
$headers
array
Details
visibility
public
final
false
static
false

setMethod

setMethod( string $type ) : Zend_Controller_Request_HttpTestCase

Set request method

Arguments
$type
string
Details
visibility
public
final
false
static
false

setRawBody

setRawBody( string $content ) : Zend_Controller_Request_HttpTestCase

Set raw POST body

Arguments
$content
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.