public function testPowerAndDivide() { $decimal = new Decimal(3); $this->assertEquals(27, $decimal->power(3)); $this->assertEquals(1, $decimal->divide(3)); $decimal->setMutable(true); $this->assertEquals(27, $decimal->power(3)); $this->assertEquals(3, $decimal->divide(3, 3)); $decimal2 = new Decimal(3); $this->assertEquals(27, $decimal->power($decimal2)); }