projects
/
awesomized
/
ext-ion
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
fix timestamp support
[awesomized/ext-ion]
/
tests
/
Decimal.phpt
1
--TEST--
2
ion\Decimal
3
--EXTENSIONS--
4
ion
5
--FILE--
6
TEST
7
<?php
8
var_dump(new ion\Decimal(1));
9
var_dump(new ion\Decimal("1.23"));
10
?>
11
DONE
12
--EXPECTF--
13
TEST
14
object(ion\Decimal)#%d (2) {
15
["number"]=>
16
int(1)
17
["context"]=>
18
object(ion\Decimal\Context)#%d (5) {
19
["digits"]=>
20
int(999999999)
21
["eMax"]=>
22
int(999999999)
23
["eMin"]=>
24
int(-999999999)
25
["round"]=>
26
int(3)
27
["clamp"]=>
28
bool(false)
29
}
30
}
31
object(ion\Decimal)#%d (2) {
32
["number"]=>
33
string(4) "1.23"
34
["context"]=>
35
object(ion\Decimal\Context)#%d (5) {
36
["digits"]=>
37
int(999999999)
38
["eMax"]=>
39
int(999999999)
40
["eMin"]=>
41
int(-999999999)
42
["round"]=>
43
int(3)
44
["clamp"]=>
45
bool(false)
46
}
47
}
48
DONE