From fd5f39df07d29aa0f6cb447bc2a13e7bb42f89a2 Mon Sep 17 00:00:00 2001 From: Koji Tanaka Date: Sun, 8 Jan 2023 20:16:30 +0900 Subject: [PATCH] test: Fixed CakeNumberTest::testCurrencyFractionSymbol() Change in behavior of == comparison operators in PHP 8.0 has revealed a bug in the test code. see: https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.core.string-number-comparision Co-authored-by: Kenshin Okinaka --- lib/Cake/Test/Case/Utility/CakeNumberTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Utility/CakeNumberTest.php b/lib/Cake/Test/Case/Utility/CakeNumberTest.php index aff777391..bf6576821 100644 --- a/lib/Cake/Test/Case/Utility/CakeNumberTest.php +++ b/lib/Cake/Test/Case/Utility/CakeNumberTest.php @@ -343,7 +343,7 @@ class CakeNumberTest extends CakeTestCase { 'places' => 2, 'decimal' => '.' )); - $this->assertEquals('0.2', $result); + $this->assertEquals('0.20', $result); } /**