/** * @covers Moontoast\Math\BigNumber::mod * @expectedException Moontoast\Math\Exception\ArithmeticException * @expectedExceptionMessage Division by zero */ public function testModDivisionByZero() { $bn = new BigNumber('9223372036854775808'); $bn->mod(0); }