Lggr
|
Public Member Functions | |
accepts ($expected, $actual) | |
assertEquals ($expected, $actual, $delta=0.0, $canonicalize=false, $ignoreCase=false, array &$processed=[]) | |
![]() | |
setFactory (Factory $factory) | |
assertEquals ($expected, $actual, $delta=0.0, $canonicalize=false, $ignoreCase=false) | |
Protected Member Functions | |
indent ($lines) | |
Additional Inherited Members | |
![]() | |
$factory | |
$exporter | |
Compares arrays for equality.
SebastianBergmann\Comparator\ArrayComparator::accepts | ( | $expected, | |
$actual | |||
) |
Returns whether the comparator can compare two values.
mixed | $expected | The first value to compare |
mixed | $actual | The second value to compare |
Reimplemented from SebastianBergmann\Comparator\Comparator.
Reimplemented in SebastianBergmann\Comparator\DOMNodeComparator, SebastianBergmann\Comparator\DateTimeComparator, SebastianBergmann\Comparator\ExceptionComparator, SebastianBergmann\Comparator\MockObjectComparator, SebastianBergmann\Comparator\ObjectComparator, and Prophecy\Comparator\ProphecyComparator.
SebastianBergmann\Comparator\ArrayComparator::assertEquals | ( | $expected, | |
$actual, | |||
$delta = 0.0 , |
|||
$canonicalize = false , |
|||
$ignoreCase = false , |
|||
array & | $processed = [] |
||
) |
Asserts that two values are equal.
mixed | $expected | First value to compare |
mixed | $actual | Second value to compare |
float | $delta | Allowed numerical distance between two values to consider them equal |
bool | $canonicalize | Arrays are sorted before comparison when set to true |
bool | $ignoreCase | Case is ignored when set to true |
array | $processed | List of already processed elements (used to prevent infinite recursion) |
ComparisonFailure |
Reimplemented in Prophecy\Comparator\ProphecyComparator, SebastianBergmann\Comparator\DOMNodeComparator, and SebastianBergmann\Comparator\ObjectComparator.