2012-08-23 00:43:49 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of the Monolog package.
|
|
|
|
*
|
|
|
|
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please view the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Monolog\Handler;
|
|
|
|
|
|
|
|
use Monolog\TestCase;
|
|
|
|
use Monolog\Logger;
|
|
|
|
|
|
|
|
class NewRelicHandlerTest extends TestCase
|
|
|
|
{
|
|
|
|
public function testFallbackHandler()
|
|
|
|
{
|
|
|
|
$handler = new NewRelicHandler();
|
|
|
|
$fallbackHandler = new TestHandler();
|
|
|
|
$record = array(
|
|
|
|
'level' => Logger::DEBUG,
|
|
|
|
'extra' => array(),
|
|
|
|
);
|
|
|
|
|
|
|
|
$handler->handle($record);
|
|
|
|
|
2013-06-29 02:05:03 +04:00
|
|
|
$this->assertTrue($handler->isHandling($record));
|
2012-08-23 00:43:49 +04:00
|
|
|
}
|
|
|
|
}
|