Skip to content

Commit

Permalink
Missing division by zero test for BigDecimal::divideAndRemainder()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Jun 5, 2015
1 parent 536e641 commit 2aabbe1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/BigDecimalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1240,6 +1240,14 @@ public function providerDivideAndRemainder()
];
}

/**
* @expectedException \Brick\Math\ArithmeticException
*/
public function testDivideAndRemainderByZeroThrowsException()
{
BigDecimal::of(1.2)->divideAndRemainder(0);
}

/**
* @dataProvider providerPower
*
Expand Down

0 comments on commit 2aabbe1

Please sign in to comment.