1
0
mirror of https://github.com/danog/math.git synced 2024-11-27 04:14:40 +01:00

Missing division by zero test for BigDecimal::divideAndRemainder()

This commit is contained in:
Benjamin Morel 2015-06-05 22:19:20 +02:00
parent 536e6414e6
commit 2aabbe1a53

View File

@ -1240,6 +1240,14 @@ class BigDecimalTest extends AbstractTestCase
];
}
/**
* @expectedException \Brick\Math\ArithmeticException
*/
public function testDivideAndRemainderByZeroThrowsException()
{
BigDecimal::of(1.2)->divideAndRemainder(0);
}
/**
* @dataProvider providerPower
*