$handler->
handle($record);
} /**
* @return iterable<string, array{0: LogRecord, 1: list<string>, 2: bool}>
*/
public static function cases(): iterable
{ // record, exclude list, should be passed
yield 'event without exclude list' =>
[ new LogRecord(new \
DateTimeImmutable(), 'foo', Level::Alert, 'some message'
),
[],
true,
];
yield 'event with exclude list that matches but different channel' =>
[ new LogRecord(new \
DateTimeImmutable(), 'app', Level::Alert, UserRecoveryRequestEvent::EVENT_NAME
),
[ UserRecoveryRequestEvent::EVENT_NAME,
],
true,
];