diff --git a/tests/Unit/MollieAmountFormatTest.php b/tests/Unit/MollieAmountFormatTest.php new file mode 100644 index 000000000000..147d4e21218b --- /dev/null +++ b/tests/Unit/MollieAmountFormatTest.php @@ -0,0 +1,32 @@ +assertEquals('1000.00', \number_format((float) 1000, 2, '.', '')); + + $this->assertEquals('1000.00', \number_format((float) "1000", 2, '.', '')); + + $this->assertEquals('1000.00', \number_format((float) "1000.00", 2, '.', '')); + + $this->assertEquals('1000.00', \number_format((float) "1000.00000", 2, '.', '')); + } +}