public function testLogFunction() { $logger = new \FakeLogger(); $config = array(array('path' => '\\', 'level' => \Logger\Log::INFO, 'class' => $logger)); \Logger\Log::init($config); _log('func'); $this->assert->array($logger->array)->hasSize(1)->string($logger->array[0][0])->isEqualTo('func'); }
function logg() { \Logger\Log::getInstance()->fatal('fatal'); }
static function _log($pMessage) { \Logger\Log::getInstance()->info($pMessage); }