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