Redirection constraints

package Zend_Test
inherited_from \Zend_Test_PHPUnit_Constraint_Redirect34

 Methods

Constructor; setup constraint state

__construct() : void
Inherited

Evaluate an object to see if it fits the constraints

evaluate(string $other, $assertType = null) : boolean
Inherited

Parameters

$other

string

String to examine

$assertType

Returns

boolean

Report Failure

fail(mixed $other, string $description, boolean $not = false) : void
Inherited
see for implementation details

Parameters

$other

mixed

$description

string

Additional message to display

$not

boolean

Exceptions

\PHPUnit_Framework_ExpectationFailedException

Indicate negative match

setNegate(boolean $flag = true) : void
Inherited

Parameters

$flag

boolean

Complete implementation

toString() : string
Inherited

Returns

string

Check to see if content is matched in selected nodes

_match(\Zend_Controller_Response_HttpTestCase $response, string $match) : boolean
Inherited

Parameters

$response

\Zend_Controller_Response_HttpTestCase

$match

string

Content to match

Returns

boolean

Check to see if content is NOT matched in selected nodes

_notMatch(\Zend_Controller_Response_HttpTestCase $response, string $match) : boolean
Inherited

Parameters

$response

\Zend_Controller_Response_HttpTestCase

$match

string

Returns

boolean

Check to see if content is NOT matched by regex in selected nodes

_notRegex(\Zend_Controller_Response_HttpTestCase $response, string $pattern) : boolean
Inherited

Parameters

$response

\Zend_Controller_Response_HttpTestCase

$pattern

string

Returns

boolean

Check to see if content is matched by regex in selected nodes

_regex(\Zend_Controller_Response_HttpTestCase $response, string $pattern) : boolean
Inherited

Parameters

$response

\Zend_Controller_Response_HttpTestCase

$pattern

string

Returns

boolean

 Properties

 

What is actual redirect

$_actual 

Default

null
 

Current assertion type

$_assertType : string

Default

null
 

Available assertion types

$_assertTypes : array

Default

array(self::ASSERT_REDIRECT, self::ASSERT_REDIRECT_TO, self::ASSERT_REDIRECT_REGEX)
 

Pattern to match against

$_match : string

Default

null
 

Whether or not assertion is negated

$_negate : boolean

Default

false

 Constants

 

ASSERT_REDIRECT

ASSERT_REDIRECT = 'assertRedirect' 
 

ASSERT_REDIRECT_REGEX

ASSERT_REDIRECT_REGEX = 'assertRedirectRegex' 
 

ASSERT_REDIRECT_TO

ASSERT_REDIRECT_TO = 'assertRedirectTo'