Class Assertion
Assertion is responsible for asserting it's actual value against a MatcherInterface and responding to the results of a match.
- Peridot\Leo\Assertion uses Peridot\Leo\DynamicObjectTrait
public
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
public
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
addMethod(),
addProperty(),
clearFlags(),
flag()
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
instanceof( string $message = "" )
Asserts that the actual value is an instance of the expected class string |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
protected
|
$responder
|
|
protected
mixed
|
$actual
|
$flags,
$methods,
$properties
|
public
|
$to
a language chain |
public
|
$be
a language chain |
public
|
$been
a language chain |
public
|
$is
a language chain |
public
|
$and
a language chain |
public
|
$has
a language chain |
public
|
$have
a language chain |
public
|
$with
a language chain |
public
|
$that
a language chain |
public
|
$at
a language chain |
public
|
$of
a language chain |
public
|
$same
a language chain |
public
|
$an
a language chain |
public
|
$a
a language chain |
public
|
$not
flags the Assertion as negated |
public
|
$loosely
enables loose equality assertion using the ->equal() assertion |
public
|
$contain
enables the contain flag for use with the ->keys() assertion |
public
|
$include
enables the contain flag for use with the ->keys() assertion |
public
|
$ok
a lazy property that performs an ->ok() assertion |
public
|
$true
a lazy property that performs a ->true() assertion |
public
|
$false
a lazy property that performs a ->false() assertion |
public
|
$null
a lazy property that performs a ->null() assertion |
public
|
$empty
a lazy property that performs an ->empty() assertion |
public
|
$length
enables the length flag for use with countable assertions such as ->above(), ->least(), ->below(), ->most(), and ->within() |
public
|
$deep
enables the deep flag for use with assertions that need to traverse structures like the ->property() assertion |