/** * @expectedException Cassandra\Exception\DivideByZeroException */ public function testDivByZero() { $float1 = new Float("1"); $float2 = new Float("0"); $float1->div($float2); }