Skip to content

Commit

Permalink
Use assertEqual instead of assertSame to allow ints and floats with the
Browse files Browse the repository at this point in the history
same value
  • Loading branch information
betterphp committed Jul 27, 2023
1 parent 1b443bc commit fedc9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PhpSpreadsheetTests/Calculation/RefErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit fedc9bc

Please sign in to comment.