mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-15 01:24:17 +02:00
FilterHandler: fix handle empty batch of filtered records
This commit is contained in:
@@ -167,4 +167,12 @@ class FilterHandlerTest extends TestCase
|
||||
);
|
||||
$handler->handle($this->getRecord(Logger::WARNING));
|
||||
}
|
||||
|
||||
public function testHandleEmptyBatch()
|
||||
{
|
||||
$test = new TestHandler();
|
||||
$handler = new FilterHandler($test);
|
||||
$handler->handleBatch(array());
|
||||
$this->assertSame(array(), $test->getRecords());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user