/** * @expectedException RuntimeException * @expectedExceptionMessage Not implemented */ public function testMod() { $float1 = new Float("1"); $float2 = new Float("2"); $float1->mod($float2); }
public function testMod() { $float1 = new Float("1"); $float2 = new Float("2"); $this->assertEquals(1, (double) $float1->mod($float2), "", self::EPSILON); }