Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 72ee4e5

Browse files
committed
Updated php_codesniffer dependency
1 parent 372f461 commit 72ee4e5

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "3.7.*",
24-
"squizlabs/php_codesniffer": "1.4.7",
24+
"squizlabs/php_codesniffer": "1.5.1",
2525
"satooshi/php-coveralls": "dev-master"
2626
},
2727
"minimum-stability": "stable",
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
use Litipk\BigNumbers\Decimal as Decimal;
4+
5+
class DecimalSerializationTest extends PHPUnit_Framework_TestCase
6+
{
7+
public function testBaseCase ()
8+
{
9+
$one = Decimal::fromInteger(1);
10+
$little = Decimal::fromString('0.0000000000001');
11+
12+
$serialized_one = serialize($one);
13+
$unserialized_one = unserialize($serialized_one);
14+
15+
$serialized_little = serialize($little);
16+
$unserialized_little = unserialize($serialized_little);
17+
18+
$this->assertTrue($one->equals($unserialized_one));
19+
$this->assertTrue($little->equals($unserialized_little));
20+
}
21+
}

0 commit comments

Comments
 (0)