public static function getLog($type = '') { return $type ? self::$log[$type] : self::$log; }
public function testRecord() { $record_msg = 'record'; Log::record($record_msg, 'notice'); $logs = Log::getLog(); $this->assertNotFalse(array_search(['type' => 'notice', 'msg' => $record_msg], $logs)); }