diff --git a/tests/BigDecimalTest.php b/tests/BigDecimalTest.php index bc1e35c..13b1161 100644 --- a/tests/BigDecimalTest.php +++ b/tests/BigDecimalTest.php @@ -1240,6 +1240,14 @@ public function providerDivideAndRemainder() ]; } + /** + * @expectedException \Brick\Math\ArithmeticException + */ + public function testDivideAndRemainderByZeroThrowsException() + { + BigDecimal::of(1.2)->divideAndRemainder(0); + } + /** * @dataProvider providerPower *