MultiArgumentClosure
extends MatcherAbstract
in package
implements
ArgumentListMatcher
Interfaces, Classes and Traits
Table of Contents
- $_expected : mixed
- The expected value (or part thereof)
- __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
Methods
__construct()
Set the expected value
public
__construct([mixed $expected = null ]) : mixed
Parameters
- $expected : mixed = null
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
Actual passed by reference to preserve reference trail (where applicable) back to the original method parameter.
Parameters
- $actual : mixed