From 8df9214b6d5ad50518b82ddeb8a81cea9500dc21 Mon Sep 17 00:00:00 2001 From: Mathias Verraes Date: Tue, 7 Oct 2014 14:10:50 +0200 Subject: [PATCH] Proof for #64: Money::stringToUnits(".99") returns 9900, not 99 --- tests/Money/Tests/MoneyTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Money/Tests/MoneyTest.php b/tests/Money/Tests/MoneyTest.php index 6f16aa90..5d3bcca8 100644 --- a/tests/Money/Tests/MoneyTest.php +++ b/tests/Money/Tests/MoneyTest.php @@ -225,7 +225,9 @@ public static function provideStrings() array("+1000.0", 100000), array("+1000.00", 100000), array("+0.01", 1), - array("+1", 100) + array("+1", 100), + array(".99", 99), + array("-.99", -99), ); }