Redirection constraints
uses | |
---|---|
category | Zend |
package | Zend_Test |
subpackage | PHPUnit |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct() : void
evaluate(string $other, $assertType= null
, $variable= FALSE
) : boolean
string
String to examine
boolean
NOTE:
Drastic changes up to PHPUnit 3.5.15 this was:
public function evaluate($other, $assertType = null)
In PHPUnit 3.6.0 they changed the interface into this:
public function evaluate($other, $description = '', $returnResult = FALSE)
We use the new interface for PHP-strict checking, but emulate the old onefail(mixed $other, string $description, \SebastianBergmann\Comparator\ComparisonFailure $cannot_be_used = NULL
) : void
see | for implementation details |
---|
mixed
string
Additional message to display
\PHPUnit_Framework_ExpectationFailedException |
NOTE: Drastic changes up to PHPUnit 3.5.15 this was: public function fail($other, $description, $not = false) In PHPUnit 3.6.0 they changed the interface into this: protected function fail($other, $description, PHPUnit_Framework_ComparisonFailure $comparisonFailure = NULL) We use the new interface for PHP-strict checking NOTE 2: Interface changed again in PHPUnit 4.1.0 because of refactoring to SebastianBergmann\Comparator |
---|
setNegate(boolean $flag = true
) : void
boolean
toString() : string
string
_match(\Zend_Controller_Response_HttpTestCase $response, string $match) : boolean
\Zend_Controller_Response_HttpTestCase
string
Content to match
boolean
_notMatch(\Zend_Controller_Response_HttpTestCase $response, string $match) : boolean
\Zend_Controller_Response_HttpTestCase
string
boolean
_notRegex(\Zend_Controller_Response_HttpTestCase $response, string $pattern) : boolean
\Zend_Controller_Response_HttpTestCase
string
boolean
_regex(\Zend_Controller_Response_HttpTestCase $response, string $pattern) : boolean
\Zend_Controller_Response_HttpTestCase
string
boolean
$_actual
null
$_assertType : string
null
$_assertTypes : array
array(self::ASSERT_REDIRECT, self::ASSERT_REDIRECT_TO, self::ASSERT_REDIRECT_REGEX)
$_match : string
null
$_negate : boolean
false
ASSERT_REDIRECT = 'assertRedirect'
ASSERT_REDIRECT_REGEX = 'assertRedirectRegex'
ASSERT_REDIRECT_TO = 'assertRedirectTo'