PHPUnitConstraint
extends MatcherAbstract
in package
Table of Contents
- $_expected : mixed
- The expected value (or part thereof)
- $constraint : mixed
- $rethrow : mixed
- __construct() : mixed
- Set the expected value
- __toString() : string
- Return a string representation of this Matcher
- match() : bool
- Check if the actual value matches the expected.
Properties
$_expected
The expected value (or part thereof)
protected
mixed
$_expected
= null
$constraint
protected
mixed
$constraint
$rethrow
protected
mixed
$rethrow
Methods
__construct()
Set the expected value
public
__construct(mixed $constraint[, bool $rethrow = false ]) : mixed
Parameters
- $constraint : mixed
- $rethrow : bool = false
Return values
mixed —__toString()
Return a string representation of this Matcher
public
__toString() : string
Return values
string —match()
Check if the actual value matches the expected.
public
match(mixed &$actual) : bool
Parameters
- $actual : mixed