コード例 #1
0
 function it_can_deduct_an_amount()
 {
     $this->deduct(\Fare::fromString('10'))->shouldBeLike(\Fare::fromString('90.00'));
 }
コード例 #2
0
 function it_gets_points_from_original_fare()
 {
     $this->pay(\Fare::fromString("50"));
     $this->getPoints()->shouldBeLike(\Points::fromString('100'));
 }
コード例 #3
0
 /**
  * @Transform :fare
  */
 public function transformFare($string)
 {
     return Fare::fromString($string);
 }