improve un/serialization API
[awesomized/ext-ion] / tests / Decimal / isInt.phpt
1 --TEST--
2 ion\Decimal::isInt
3 --EXTENSIONS--
4 ion
5 --FILE--
6 TEST
7 <?php
8 use ion\Decimal;
9
10 var_dump((new Decimal(1))->isInt());
11 var_dump((new Decimal(-1))->isInt());
12 var_dump((new Decimal(123456789))->isInt());
13 var_dump((new Decimal(-123456789))->isInt());
14 var_dump((new Decimal("1.23"))->isInt());
15 var_dump((new Decimal("-1.23"))->isInt());
16 ?>
17 DONE
18 --EXPECT--
19 TEST
20 bool(true)
21 bool(true)
22 bool(true)
23 bool(true)
24 bool(false)
25 bool(false)
26 DONE