示例#1
0
 public function testCompletionCorrect()
 {
     $timePeriod = new TimePeriod();
     $timePeriod->setStartTimestamp(100);
     $timePeriod->setEndTimestamp(200);
     $timePeriod->setCurrentTimestamp(150);
     $this->assertEquals(0.5, $timePeriod->getCompletion());
 }