Exemplo n.º 1
0
 public function getEventLogInfo(Event $event, $eventName)
 {
     $info = new AuditLog();
     $info->setDescription($eventName);
     $info->setType($eventName);
     return $info;
 }
Exemplo n.º 2
0
 public function testSettingLevelCase()
 {
     $log = new AuditLog();
     $log->setLevel('info');
     $this->assertEquals('info', $log->getLevel());
     $log->setLevel('INFO');
     $this->assertEquals('INFO', $log->getLevel());
 }