/** * 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()) ); }
/** * @expectedException \LogicException * @expectedExceptionMessage Current cannot exceed total number. */ public function testSetNextException() { $progress = new Progress(10, 10); $progress->setNext(); }