/**
  * @test
  * @dataProvider provideBackgroundPointsHeritageAndPrice
  * @param int $spentBackgroundPoints
  * @param int $heritageValue
  * @param int $expectedPrice
  */
 public function I_can_get_belongings_price($spentBackgroundPoints, $heritageValue, $expectedPrice)
 {
     $belongingsValue = BelongingsValue::getIt($spentBackgroundPoints, $heritage = $this->createHeritage($heritageValue));
     $price = $belongingsValue->getBelongingsPrice();
     self::assertInstanceOf(Price::class, $price);
     self::assertSame((double) $expectedPrice, $price->getGoldCoins());
     self::assertSame((double) $expectedPrice, $price->getValue());
     // the base value is in gold already
 }
 private function sumSpentPoints(Heritage $heritage, BackgroundSkillPoints $backgroundSkillPoints, BelongingsValue $belongingsValue)
 {
     return $heritage->getSpentBackgroundPoints() + $backgroundSkillPoints->getSpentBackgroundPoints() + $belongingsValue->getSpentBackgroundPoints();
 }