/** * @group unit */ public function testGetFormattedTime() { $this->assertEquals('1 Stunde ', tx_mklib_util_Scheduler::getFormattedTime(3600)); }
/** * Liefert alle Optionen. sekunden werden in einer ordentlichen * zeitangabe formatiert * * @return array */ public function getOptions() { $options = parent::getOptions(); foreach ($this->optionsToFormat as $option) { if (isset($options[$option])) { $options[$option] = tx_mklib_util_Scheduler::getFormattedTime($options[$option]); } } return $options; }