/**
  * @test
  */
 public function I_can_get_maximum_time_bonus_to_gallop()
 {
     $speedTable = new SpeedTable();
     $timeTable = new TimeTable();
     $movementTypesTable = new MovementTypesTable($speedTable, $timeTable);
     $endurance = $this->createEndurance(12);
     self::assertEquals($movementTypesTable->getMaximumTimeBonusToSprint($endurance), (new RidingAnimalMovementTypesTable($speedTable, new MovementTypesTable($speedTable, $timeTable)))->getMaximumTimeBonusToGallop($endurance));
 }
 /**
  * @param Endurance $endurance
  * @return TimeBonus
  * @throws \DrdPlus\Tables\Measurements\Time\Exceptions\CanNotConvertThatBonusToTime
  */
 public function getMaximumTimeBonusToGallop(Endurance $endurance)
 {
     return $this->movementTypesTable->getMaximumTimeBonusToSprint($endurance);
 }
 /**
  * @test
  */
 public function I_can_get_maximum_time_of_sprint()
 {
     $movementTypesTable = new MovementTypesTable($this->speedTable, $this->timeTable);
     $timeBonus = $movementTypesTable->getMaximumTimeBonusToSprint($this->createEndurance(123));
     self::assertInstanceOf(TimeBonus::class, $timeBonus);
     self::assertSame(123, $timeBonus->getValue());
 }