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.
Redirection constraints
ASSERT_REDIRECT = 'assertRedirect'
ASSERT_REDIRECT_TO = 'assertRedirectTo'
ASSERT_REDIRECT_REGEX = 'assertRedirectRegex'
string $_assertType = 'null'
Current assertion type
array $_assertTypes = 'array'
Available assertion types
string $_match = 'null'
Pattern to match against
bool $_negate = 'false'
Whether or not assertion is negated
__construct(
)
:
void
Constructor; setup constraint state
_match(
Zend_Controller_Response_HttpTestCase $response, string $match
)
:
bool
Check to see if content is matched in selected nodes
_notMatch(
Zend_Controller_Response_HttpTestCase $response, string $match
)
:
bool
Check to see if content is NOT matched in selected nodes
_notRegex(
Zend_Controller_Response_HttpTestCase $response, string $pattern
)
:
bool
Check to see if content is NOT matched by regex in selected nodes
_regex(
Zend_Controller_Response_HttpTestCase $response, string $pattern
)
:
bool
Check to see if content is matched by regex in selected nodes
evaluate(
string $other, null|string $assertType
=
null
)
:
bool
Evaluate an object to see if it fits the constraints
fail(
mixed $other, string $description, bool $not
=
false
)
:
void
Report Failure
setNegate(
bool $flag
=
true
)
:
void
Indicate negative match
toString(
)
:
string
Complete implementation