public function testRand() { $x = rand(-100000, 100000); $y = rand(-100000, 100000); $decimal = new Decimal(); $this->assertEquals($x / $y, $decimal->divide($x, $y)); $this->assertEquals($x * $y, $decimal->multiply($x, $y)); $decimal->setReturnMode(true); $this->assertEquals($x * $x / $y, $decimal->divide($decimal->multiply($x, $x), $y)->get()); }