projects
/
awesomized
/
ext-ion
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
improve un/serialization API
[awesomized/ext-ion]
/
tests
/
Decimal
/
equals.phpt
1
--TEST--
2
ion\Decimal::equals
3
--EXTENSIONS--
4
ion
5
--FILE--
6
TEST
7
<?php
8
use ion\Decimal;
9
10
var_dump(new Decimal(1) == new Decimal("1"));
11
var_dump((new Decimal(1))->equals(new Decimal("1")));
12
13
var_dump(new Decimal(1) == new Decimal(2));
14
var_dump((new Decimal(1))->equals(new Decimal(2)));
15
?>
16
DONE
17
--EXPECT--
18
TEST
19
bool(true)
20
bool(true)
21
bool(false)
22
bool(false)
23
DONE