function it_gets_points_from_original_fare() { $this->pay(\Fare::fromString("50")); $this->getPoints()->shouldBeLike(\Points::fromString('100')); }
public function getPoints() { return \Points::fromString($this->pence / 100); }
function it_calculates_points() { $this->getPoints()->shouldBeLike(\Points::fromString(100)); }
/** * @Transform :points */ public function transformPoints($string) { return Points::fromString($string); }