1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 05:36:45 +02:00

Reset test handler

This commit is contained in:
George Mponos
2018-11-17 20:30:52 +02:00
parent bb3771b948
commit 9ba4f22832

View File

@@ -79,6 +79,11 @@ class TestHandler extends AbstractProcessingHandler
$this->recordsByLevel = array(); $this->recordsByLevel = array();
} }
public function reset()
{
$this->clear();
}
public function hasRecords($level) public function hasRecords($level)
{ {
return isset($this->recordsByLevel[$level]); return isset($this->recordsByLevel[$level]);