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