/** * @param PhaseStatusEvent $event */ public function onPhaseStatus(PhaseStatusEvent $event) { $phase = $event->getPhase(); switch ($phase->getType()) { case Phase::CONTROL_TEMP: $this->logManager->log(sprintf("Phase '%s' : %d / %d seconds (%d min)", $phase->getName(), $event->getElapsedTime(), $phase->getDuration(), $phase->getDuration() / 60)); break; case Phase::ADD_INGREDIENTS: $this->logManager->dialog('Voeg ingrediënten toe', $phase->getName(), $this->getIdentifier($phase)); break; } }
public function testBroadcastDialog() { $this->assertTrue($this->logManager->dialog('Add ingredients', 'Operator, add the pils malt', 'phase.1')); $this->assertTrue($this->logManager->dialog('Add ingredients', 'Operator, add the wheat malt', 'phase.2')); $this->assertTrue($this->logManager->dialog('Add ingredients', 'Operator, add the oatmeal', 'phase.3')); }