/**
  * @test
  * @expectedException \OutOfRangeException
  */
 public function I_can_not_convert_too_high_bonus_to_too_detailed_unit()
 {
     $distanceTable = new DistanceTable();
     $distanceTable->toDistance(new DistanceBonus(120, $distanceTable));
 }
Exemplo n.º 2
0
 /**
  * @return Distance
  */
 public function getDistance()
 {
     return $this->distanceTable->toDistance($this);
 }