Ejemplo n.º 1
0
 /**
  * Correction factor
  * @return string
  */
 public function correctionFactor()
 {
     $Corrector = new VDOTCorrector();
     $Corrector->fromActivity($this->Activity);
     return sprintf("%1.4f", $Corrector->factor());
 }
Ejemplo n.º 2
0
 public function testFromEmptyActivity()
 {
     $Corrector = new VDOTCorrector();
     $Corrector->fromActivity($Activity = new Activity\Object(array(Activity\Object::VDOT_BY_TIME => 45)));
     $this->assertEquals(1, $Corrector->factor());
 }