diff --git a/system/Test/CIUnitTestCase.php b/system/Test/CIUnitTestCase.php index f004d43beba4..266a22b0161d 100644 --- a/system/Test/CIUnitTestCase.php +++ b/system/Test/CIUnitTestCase.php @@ -445,7 +445,7 @@ public function assertHeaderNotEmitted(string $header, bool $ignoreCase = false) */ public function assertCloseEnough(int $expected, $actual, string $message = '', int $tolerance = 1) { - $difference = abs($expected - (int) floor((float) $actual)); + $difference = abs($expected - (int) floor($actual)); $this->assertLessThanOrEqual($tolerance, $difference, $message); }