1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-09 06:36:46 +02:00

Fix tests

This commit is contained in:
Jordi Boggiano
2013-07-28 23:19:20 +02:00
parent df1f411378
commit 52f478b289
2 changed files with 8 additions and 6 deletions

View File

@@ -11,6 +11,8 @@
namespace Monolog\Handler;
use Monolog\Logger;
/**
* Class to record a log on a NewRelic application
*

View File

@@ -22,19 +22,19 @@ class NewRelicHandlerTest extends TestCase
public function testThehandlerThrowsAnExceptionIfTheNRExtensionIsNotLoaded()
{
$handler = new StubNewRelicHandlerWithoutExtension();
$handler->handle($this->getRecord());
$handler->handle($this->getRecord(Logger::ERROR));
}
public function testThehandlerCanHandleTheRecord()
{
$handler = new StubNewRelicHandler();
$handler->handle($this->getRecord());
$handler->handle($this->getRecord(Logger::ERROR));
}
public function testThehandlerCanAddParamsToTheNewRelicTrace()
{
$handler = new StubNewRelicHandler();
$handler->handle($this->getRecord(100, 'log message', array('a' => 'b')));
$handler->handle($this->getRecord(Logger::ERROR, 'log message', array('a' => 'b')));
}
}