コード例 #1
0
ファイル: TotalTest.php プロジェクト: aclivo/kpi
 /**
  * @covers Aclivo\Kpi\Total::setDirector
  * @covers Aclivo\Kpi\Total::getDirection
  */
 public function testSetDirector()
 {
     $total = new Total();
     $total->setActual(100);
     $total->setTarget(100);
     $total->setlowBandTarget(90);
     $total->sethighBandTarget(110);
     $director = new UpDirector();
     $total->setDirector($director);
     $this->assertEquals(Directions::GOOD, $total->getDirection());
 }