mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 21:26:43 +02:00
Fix NewRelicHandler error when using LineFormatter
This commit is contained in:
committed by
Jordi Boggiano
parent
79f9492b74
commit
09c4cca32b
@@ -11,6 +11,7 @@
|
||||
|
||||
namespace Monolog\Handler;
|
||||
|
||||
use Monolog\Formatter\LineFormatter;
|
||||
use Monolog\TestCase;
|
||||
use Monolog\Logger;
|
||||
|
||||
@@ -104,6 +105,13 @@ class NewRelicHandlerTest extends TestCase
|
||||
$this->assertEquals($expected, self::$customParameters);
|
||||
}
|
||||
|
||||
public function testThehandlerCanHandleTheRecordsFormattedUsingTheLineFormatter()
|
||||
{
|
||||
$handler = new StubNewRelicHandler();
|
||||
$handler->setFormatter(new LineFormatter());
|
||||
$handler->handle($this->getRecord(Logger::ERROR));
|
||||
}
|
||||
|
||||
public function testTheAppNameIsNullByDefault()
|
||||
{
|
||||
$handler = new StubNewRelicHandler();
|
||||
|
Reference in New Issue
Block a user