public function test_getInstance() { $instance = Logger::getInstance(); $this->assertInstanceOf('\\Xoops\\Core\\Logger', $instance); $instance1 = Logger::getInstance(); $this->assertSame($instance1, $instance); }
/** * constructor */ public function __construct() { Logger::getInstance()->addLogger($this); }
/** * get the system logger instance * * @return \Xoops\Core\Logger */ public function logger() { return \Xoops\Core\Logger::getInstance(); }