From 4ebaca10900b88808220f7b7bad773ec621829c0 Mon Sep 17 00:00:00 2001 From: Paul Water Date: Mon, 11 Feb 2019 12:58:13 +0100 Subject: [PATCH] Added unit test. --- test/CastIntTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/CastIntTest.php b/test/CastIntTest.php index 9b6ee65..f7cc481 100644 --- a/test/CastIntTest.php +++ b/test/CastIntTest.php @@ -129,6 +129,10 @@ public function validManIntCases(): array 'expected' => 123]; $cases[] = ['value' => 0, 'expected' => 0]; + + // Float test cases. + $cases[] = ['value' => 0.0, + 'expected' => 0]; $cases[] = ['value' => 123.0, 'expected' => 123];