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:
parent
536e6414e6
commit
2aabbe1a53
@ -1240,6 +1240,14 @@ class BigDecimalTest extends AbstractTestCase
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Brick\Math\ArithmeticException
|
||||
*/
|
||||
public function testDivideAndRemainderByZeroThrowsException()
|
||||
{
|
||||
BigDecimal::of(1.2)->divideAndRemainder(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider providerPower
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user