Example #1
0
 public function testComputeWithPercentExceptions($operation, $left, $right)
 {
     $this->if($price = new TestedPrice($left))->assert->exception(function () use($price, $right, $operation) {
         $price->compute($operation, new TestedPrice($right));
     })->isInstanceOf('\\LogicException')->message->contains('Unsupported operator');
 }