Class PropertyMatcher
PropertyMatcher determines if the actual array or object has the expected property, and optionally matches an expected value for that property.
- Peridot\Leo\Matcher\AbstractMatcher implements Peridot\Leo\Matcher\MatcherInterface
- Peridot\Leo\Matcher\PropertyMatcher
public
|
|
public
integer|string
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
|
|
public
mixed
|
|
public
mixed
|
#
setActualValue( mixed $actualValue )
Set the actual value given to the matcher. Used to store whether or not the actual value was set. |
public
boolean
|
|
public
|
|
public
boolean
|
|
protected
mixed
|
|
protected
array|object
|
#
actualToArray( object|array $actual )
Convert the actual value to an array, whether it is an object or an array. |
protected
boolean
|
#
matchArrayIndex( mixed $actual )
Match that an array index exists, and matches the expected value if set. |
protected
boolean
|
|
protected
boolean
|
|
protected
|
|
protected
array
|
getTemplate(),
invert(),
isNegated(),
match(),
setAssertion(),
setTemplate()
|
protected
string|integer
|
$key
|
|
protected
mixed
|
$value
|
|
protected
mixed
|
$actualValue
|
|
protected
boolean
|
$actualValueSet
|
#
false
|
protected
boolean
|
$isDeep
|
#
false
|
$assertion,
$expected,
$negated,
$template
|