Response header PHPUnit Constraint
package | Zend_Test |
---|---|
inherited_from | \Zend_Test_PHPUnit_Constraint_ResponseHeader34 |
__construct() : void
evaluate(\Zend_Controller_Response_Abstract $other, $assertType = null
) : boolean
\Zend_Controller_Response_Abstract
String to examine
boolean
fail(mixed $other, string $description, boolean $not = false
) : void
see | for implementation details |
---|
mixed
string
Additional message to display
boolean
\PHPUnit_Framework_ExpectationFailedException |
---|
setNegate(boolean $flag = true
) : void
boolean
toString() : string
string
_code(\Zend_Controller_Response_Abstract $response, integer $code) : boolean
\Zend_Controller_Response_Abstract
integer
boolean
_getCode(\Zend_Controller_Response_Abstract $response) : integer
\Zend_Controller_Response_Abstract
integer
_getHeader(\Zend_Controller_Response_Abstract $response, string $header) : string | null
\Zend_Controller_Response_Abstract
string
string
null
_header(\Zend_Controller_Response_Abstract $response, string $header) : boolean
\Zend_Controller_Response_Abstract
string
boolean
_headerContains(\Zend_Controller_Response_Abstract $response, string $header, string $match) : boolean
\Zend_Controller_Response_Abstract
string
string
boolean
_headerRegex(\Zend_Controller_Response_Abstract $response, string $header, string $pattern) : boolean
\Zend_Controller_Response_Abstract
string
string
boolean
_notCode(\Zend_Controller_Response_Abstract $response, integer $code) : boolean
\Zend_Controller_Response_Abstract
integer
boolean
_notHeader(\Zend_Controller_Response_Abstract $response, string $header) : boolean
\Zend_Controller_Response_Abstract
string
boolean
_notHeaderContains(\Zend_Controller_Response_Abstract $response, string $header, string $match) : boolean
\Zend_Controller_Response_Abstract
string
string
boolean
_notHeaderRegex(\Zend_Controller_Response_Abstract $response, string $header, string $pattern) : boolean
\Zend_Controller_Response_Abstract
string
string
boolean
$_actualCode : integer
null
$_assertType : string
null
$_assertTypes : array
array(self::ASSERT_RESPONSE_CODE, self::ASSERT_HEADER, self::ASSERT_HEADER_CONTAINS, self::ASSERT_HEADER_REGEX)
$_code : integer
200
$_header : string
null
$_match : string
null
$_negate : boolean
false
ASSERT_HEADER = 'assertHeader'
ASSERT_HEADER_CONTAINS = 'assertHeaderContains'
ASSERT_HEADER_REGEX = 'assertHeaderRegex'
ASSERT_RESPONSE_CODE = 'assertResponseCode'