/** * Formate la liste des loggers si ceux-ci sont sous forme de tableaux * et non d'objets * * @covers Itkg\Batch\Configuration::initLoggers */ public function testInitLoggers() { $loggers = array(array('handler' => new EchoHandler())); $this->object->setLoggers($loggers); $this->object->initLoggers(); $finalLoggers = $this->object->getLoggers(); $this->assertEquals(get_class($finalLoggers[0]->popHandler()), 'Itkg\\Log\\Handler\\EchoHandler'); $loggers = array(); $this->object->setLoggers($loggers); $this->object->initLoggers(); $this->assertEquals(array(), $this->object->getLoggers()); }