|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct () | |
| accepts ($expected, $actual) | |
| assertEquals ( $expected, $actual, $delta=0.0, $canonicalize=false, $ignoreCase=false, array &$processed=[]) | |
The comparator is for comparing Money objects in PHPUnit tests.
Add this to your bootstrap file:
\SebastianBergmann\Comparator\Factory::getInstance()->register(new \Money\PHPUnit\Comparator());
Definition at line 19 of file paymethod/paypal/vendor/moneyphp/money/src/PHPUnit/Comparator.php.
| Money\PHPUnit\Comparator::__construct | ( | ) |
Definition at line 29 of file paymethod/paypal/vendor/moneyphp/money/src/PHPUnit/Comparator.php.
| Money\PHPUnit\Comparator::accepts | ( | $expected, | |
| $actual | |||
| ) |
Definition at line 42 of file paymethod/paypal/vendor/moneyphp/money/src/PHPUnit/Comparator.php.
| Money\PHPUnit\Comparator::assertEquals | ( | $expected, | |
| $actual, | |||
$delta = 0.0, |
|||
$canonicalize = false, |
|||
$ignoreCase = false, |
|||
| array & | $processed = [] |
||
| ) |
| Money | $expected | |
| Money | $actual | |
| float | $delta | |
| bool | $canonicalize | |
| bool | $ignoreCase | |
| array | $processed |
Definition at line 55 of file paymethod/paypal/vendor/moneyphp/money/src/PHPUnit/Comparator.php.