Controller/Response/HttpTestCase.php

Show: PublicProtectedPrivateinherited
Table of Contents
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_Response_HttpTestCase

Package: Zend_Controller\Response
Zend_Controller_Response_HttpTestCase
HTTP response for controllers
Parent(s)
\Zend_Controller_Response_Http < \Zend_Controller_Response_Abstract
Uses
 

Methods

methodpubliccanSendHeaders(bool $throw = false) : void

Can we send headers?

Parameters
NameTypeDescription
$throwbool
methodpublicgetBody(bool | string $spec = false) : string | array | null

Get body and/or body segments

Parameters
NameTypeDescription
$specbool | string
Returns
TypeDescription
string | array | null
methodpublicoutputBody() : string

Return the concatenated body segments

Returns
TypeDescription
string
methodpublicsendHeaders() : array

"send" headers by returning array of all headers that would be sent

Returns
TypeDescription
array
methodpublicsendResponse() : string

"send" Response

Concats all response headers, and then final body (separated by two newlines)
Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.2.0 .