Lggr
|
Public Member Functions | |
setFactory (Factory $factory) | |
accepts ($expected, $actual) | |
assertEquals ($expected, $actual, $delta=0.0, $canonicalize=false, $ignoreCase=false) | |
Protected Attributes | |
$factory | |
$exporter | |
Abstract base class for comparators which compare values for equality.
|
abstract |
Returns whether the comparator can compare two values.
mixed | $expected | The first value to compare |
mixed | $actual | The second value to compare |
Reimplemented in SebastianBergmann\Comparator\DoubleComparator, SebastianBergmann\Comparator\DOMNodeComparator, SebastianBergmann\Comparator\ScalarComparator, SebastianBergmann\Comparator\ArrayComparator, SebastianBergmann\Comparator\DateTimeComparator, SebastianBergmann\Comparator\ExceptionComparator, SebastianBergmann\Comparator\MockObjectComparator, SebastianBergmann\Comparator\NumericComparator, SebastianBergmann\Comparator\ObjectComparator, SebastianBergmann\Comparator\ResourceComparator, SebastianBergmann\Comparator\SplObjectStorageComparator, SebastianBergmann\Comparator\TypeComparator, Prophecy\Comparator\ClosureComparator, and Prophecy\Comparator\ProphecyComparator.
|
abstract |
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 |
ComparisonFailure |
Reimplemented in SebastianBergmann\Comparator\DoubleComparator, SebastianBergmann\Comparator\ScalarComparator, SebastianBergmann\Comparator\NumericComparator, SebastianBergmann\Comparator\ResourceComparator, SebastianBergmann\Comparator\SplObjectStorageComparator, and SebastianBergmann\Comparator\TypeComparator.