From fedc9bcc9132aae0fa6d3d4fd4cc95d38a9f24c3 Mon Sep 17 00:00:00 2001 From: Jacek Kuzemczak Date: Thu, 27 Jul 2023 11:42:42 +0100 Subject: [PATCH] Use assertEqual instead of assertSame to allow ints and floats with the same value --- tests/PhpSpreadsheetTests/Calculation/RefErrorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PhpSpreadsheetTests/Calculation/RefErrorTest.php b/tests/PhpSpreadsheetTests/Calculation/RefErrorTest.php index e9f45104c6..9c3055b2de 100644 --- a/tests/PhpSpreadsheetTests/Calculation/RefErrorTest.php +++ b/tests/PhpSpreadsheetTests/Calculation/RefErrorTest.php @@ -31,7 +31,7 @@ public function testRefError($expected, string $formula): void $sheet1->getCell('C2')->setValue('=Sheet2!A1'); $sheet1->getCell('C3')->setValue('=Sheet2!A2'); $sheet1->getCell('H1')->setValue($formula); - self::assertSame($expected, $sheet1->getCell('H1')->getCalculatedValue()); + self::assertEqual($expected, $sheet1->getCell('H1')->getCalculatedValue()); $spreadsheet->disconnectWorksheets(); }