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 | |
toArray ($object) | |
![]() | |
indent ($lines) | |
Additional Inherited Members | |
![]() | |
$factory | |
$exporter | |
Compares objects for equality.
SebastianBergmann\Comparator\ObjectComparator::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\ArrayComparator.
Reimplemented in SebastianBergmann\Comparator\DOMNodeComparator, SebastianBergmann\Comparator\DateTimeComparator, SebastianBergmann\Comparator\ExceptionComparator, SebastianBergmann\Comparator\MockObjectComparator, and Prophecy\Comparator\ProphecyComparator.
SebastianBergmann\Comparator\ObjectComparator::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 from SebastianBergmann\Comparator\ArrayComparator.
Reimplemented in Prophecy\Comparator\ProphecyComparator, and SebastianBergmann\Comparator\DOMNodeComparator.
|
protected |
Converts an object to an array containing all of its private, protected and public properties.
object | $object |
Reimplemented in SebastianBergmann\Comparator\MockObjectComparator, and SebastianBergmann\Comparator\ExceptionComparator.