Esempio n. 1
0
 /**
  * @param float $from
  * @return float
  */
 protected function getFrom($from)
 {
     $to = '';
     $interval = $this->dataProvider->getInterval();
     if ($interval && is_numeric($interval[0]) && $interval[0] < $from) {
         $to = $interval[0];
     }
     return $to;
 }
Esempio n. 2
0
 public function testInterval()
 {
     $interval = 100500;
     $this->target->setInterval($interval);
     $this->assertSame($interval, $this->target->getInterval());
 }