Class Assert
Assert is a non-chainable, object oriented interface on top of a Leo Assertion.
- Peridot\Leo\Interfaces\Assert uses Peridot\Leo\Interfaces\Assert\TypeAssertTrait, Peridot\Leo\Interfaces\Assert\ObjectAssertTrait, Peridot\Leo\Interfaces\Assert\CollectionAssertTrait
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
doesNotThrow( callable $fn, mixed $exceptionType, string $exceptionMessage = "", string $message = "" )
Performs a negated throw assertion. |
public
|
|
public
|
|
public
|
#
strictEqual( mixed $actual, mixed $expected, string $message = "" )
Perform a strict equality assertion. |
public
|
#
notStrictEqual( mixed $actual, mixed $expected, string $message = "" )
Perform a negated strict equality assertion. |
public
|
|
public
|
|
public
|
|
public
|
isIncluded(),
lengthOf(),
notInclude()
|
public
mixed
|
|
public
mixed
|
public static
array
|
$operators
An array of operators mapping to assertions. |
#
[
'==' => 'loosely->equal',
'===' => 'equal',
'>' => 'above',
'>=' => 'least',
'<' => 'below',
'<=' => 'most',
'!=' => 'not->loosely->equal',
'!==' => 'not->equal'
]
|
protected
|
$assertion
|