/**
  * Logs progress
  *
  * @return void
  */
 private function logProgress()
 {
     if (!$this->progress) {
         return;
     }
     $this->progress->setNext();
     $this->log->logMeta(
         sprintf(self::PROGRESS_LOG_RENDER, $this->progress->getCurrent(), $this->progress->getTotal())
     );
 }
 /**
  * @param int $total
  * @param int $current
  * @dataProvider ratioDataProvider
  */
 public function testRatio($total, $current)
 {
     $progress = new Progress($total, $current);
     $this->assertEquals($current / $total, $progress->getRatio());
 }