MockLogger.php in MongoDB 8.2
File
modules/mongodb_watchdog/tests/src/Unit/MockLogger.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\mongodb_watchdog\Unit;
use Drupal\mongodb_watchdog\Logger;
class MockLogger extends Logger {
public function __construct() {
}
public function enhanceLogEntry(array &$entry, array $backtrace) : void {
parent::enhanceLogEntry($entry, $backtrace);
}
}
Classes
Name |
Description |
MockLogger |
Class MockLogger provides a Logger implementation usable in unit tests. |