mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-31 02:10:22 +02:00
removed the logic for the fallback handler, its out of place, adapted the "test"
This commit is contained in:
@@ -20,7 +20,6 @@ class NewRelicHandlerTest extends TestCase
|
||||
{
|
||||
$handler = new NewRelicHandler();
|
||||
$fallbackHandler = new TestHandler();
|
||||
$handler->setFallbackHandler($fallbackHandler);
|
||||
$record = array(
|
||||
'level' => Logger::DEBUG,
|
||||
'extra' => array(),
|
||||
@@ -28,6 +27,6 @@ class NewRelicHandlerTest extends TestCase
|
||||
|
||||
$handler->handle($record);
|
||||
|
||||
$this->assertCount(1, $fallbackHandler->getRecords());
|
||||
$this->assertTrue($handler->isHandling($record));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user