|
| | accepts ($expected, $actual) |
| |
| | assertEquals ($expected, $actual, $delta=0.0, $canonicalize=false, $ignoreCase=false, array &$processed=array()) |
| |
| | setFactory (Factory $factory) |
| |
| | assertEquals ($expected, $actual, $delta=0.0, $canonicalize=false, $ignoreCase=false) |
| |
|
| | toArray ($object) |
| |
|
| indent ($lines) |
| |
|
| $factory |
| |
|
| $exporter |
| |
◆ accepts()
| Prophecy\Comparator\ProphecyComparator::accepts |
( |
|
$expected, |
|
|
|
$actual |
|
) |
| |
◆ assertEquals()
| Prophecy\Comparator\ProphecyComparator::assertEquals |
( |
|
$expected, |
|
|
|
$actual, |
|
|
|
$delta = 0.0, |
|
|
|
$canonicalize = false, |
|
|
|
$ignoreCase = false, |
|
|
array & |
$processed = array() |
|
) |
| |
Asserts that two values are equal.
- Parameters
-
| 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) |
- Exceptions
-
Reimplemented from SebastianBergmann\Comparator\ObjectComparator.
The documentation for this class was generated from the following file:
- vendor/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php