Some Small Changes
This commit is contained in:
parent
e27956bb9e
commit
b530603a18
|
|
@ -107,11 +107,11 @@ class TaxCest
|
||||||
foreach ($this->scenario['expectedTaxRates'] as $taxRate => $taxAmount) {
|
foreach ($this->scenario['expectedTaxRates'] as $taxRate => $taxAmount) {
|
||||||
$I->assertTrue(array_key_exists($taxRate, $result));
|
$I->assertTrue(array_key_exists($taxRate, $result));
|
||||||
|
|
||||||
$difference = abs($taxAmount - $result[$taxRate]);
|
$difference = abs($taxAmount - round($result[$taxRate], 2));
|
||||||
|
|
||||||
/* just checking the small difference */
|
/* just checking the small difference */
|
||||||
if ($difference != 0.01) {
|
if ($difference !== 0.01) {
|
||||||
$I->assertEquals($taxAmount, $result[$taxRate]);
|
$I->assertEquals($taxAmount, round($result[$taxRate], 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue