Esempio n. 1
0
 /**
  * @test powZero
  */
 public function powNegative()
 {
     try {
         $value1 = new BigDecimal('192341.12345', 5);
         $result = $value1->pow(-3);
     } catch (\InvalidArgumentException $e) {
         // pass
         return;
     }
     $this->fail('Exception was not raised for negative power');
 }