Example #1
0
 public function testComputeWithBadOperationException($operation)
 {
     $this->if($percentage = new TestedPercentage(10))->assert->exception(function () use($percentage, $operation) {
         $percentage->compute($operation, new TestedPercentage(10));
     })->isInstanceOf('\\LogicException')->message->contains('Unsupported operation');
 }