Skip to content

Commit 2aabbe1

Browse files
committed
Missing division by zero test for BigDecimal::divideAndRemainder()
1 parent 536e641 commit 2aabbe1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/BigDecimalTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,14 @@ public function providerDivideAndRemainder()
12401240
];
12411241
}
12421242

1243+
/**
1244+
* @expectedException \Brick\Math\ArithmeticException
1245+
*/
1246+
public function testDivideAndRemainderByZeroThrowsException()
1247+
{
1248+
BigDecimal::of(1.2)->divideAndRemainder(0);
1249+
}
1250+
12431251
/**
12441252
* @dataProvider providerPower
12451253
*

0 commit comments

Comments
 (0)