ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
MockLogger.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\DAV;
4
6
16
17 public $logs = [];
18
27 function log($level, $message, array $context = []) {
28
29 $this->logs[] = [
30 $level,
33 ];
34
35 }
36}
An exception for terminatinating execution or to throw for unit testing.
This is a simple Logger implementation that other Loggers can inherit from.
The MockLogger is a simple PSR-3 implementation that we can use to test whether things get logged cor...
Definition: MockLogger.php:15
log($level, $message, array $context=[])
Logs with an arbitrary level.
Definition: MockLogger.php:27
catch(Exception $e) $message
$context
Definition: webdav.php:25