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

Commit 224a9f6

Browse files
committed
Minor test fixes
1 parent 38ed445 commit 224a9f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Decimal/DecimalCreateTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ public function testCreateWithInvalidType()
1616
{
1717
$thrown = false;
1818
try {
19-
$d = Decimal::create(array(25, 67));
19+
Decimal::create(array(25, 67));
2020
} catch (InvalidArgumentTypeException $e) {
2121
$thrown = true;
2222
}
2323
$this->assertTrue($thrown);
2424

2525
$thrown = false;
2626
try {
27-
$d = Decimal::create(new A());
27+
Decimal::create(new A());
2828
} catch (InvalidArgumentTypeException $e) {
2929
$thrown = true;
3030
}

tests/Decimal/DecimalFromFloatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function testNaN()
2424
{
2525
$catched = false;
2626
try {
27-
$NaN = Decimal::fromFloat(INF - INF);
27+
Decimal::fromFloat(INF - INF);
2828
} catch (\DomainException $e) {
2929
$catched = true;
3030
}

0 commit comments

Comments
 (0)