public function testICanSetADuration()
 {
     $duration = new DayDuration('mon');
     $duration->setDuration(150);
     $this->assertInstanceOf(MovingDuration::class, $this->instance->setDuration($duration));
     $values = $this->instance->getDurations();
     $this->assertEquals($duration->getDuration(), $values['mon']);
 }
Ejemplo n.º 2
0
 /**
  * @param array $strengtheningActivityDays
  * @return Moving
  */
 public function setStrengtheningActivityDays(array $strengtheningActivityDays)
 {
     foreach ($strengtheningActivityDays as $key => $val) {
         $dayDuration = new DayDuration($key);
         $this->strengtheningDayDurations->setDuration($dayDuration->setDuration($val));
     }
     return $this;
 }