mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-10 15:14:14 +02:00
Renamed message to record
This commit is contained in:
@@ -18,13 +18,13 @@ class NullHandlerTest extends \PHPUnit_Framework_TestCase
|
||||
public function testHandle()
|
||||
{
|
||||
$handler = new NullHandler();
|
||||
$this->assertTrue($handler->handle($this->getMessage()));
|
||||
$this->assertTrue($handler->handle($this->getRecord()));
|
||||
}
|
||||
|
||||
public function testHandleLowerLevelMessage()
|
||||
public function testHandleLowerLevelRecord()
|
||||
{
|
||||
$handler = new NullHandler(Logger::WARNING);
|
||||
$this->assertFalse($handler->handle($this->getMessage(Logger::DEBUG)));
|
||||
$this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,10 +33,10 @@ class NullHandlerTest extends \PHPUnit_Framework_TestCase
|
||||
public function testWrite()
|
||||
{
|
||||
$handler = new NullHandler();
|
||||
$handler->write($this->getMessage());
|
||||
$handler->write($this->getRecord());
|
||||
}
|
||||
|
||||
protected function getMessage($level = Logger::WARNING)
|
||||
protected function getRecord($level = Logger::WARNING)
|
||||
{
|
||||
return array(
|
||||
'level' => $level,
|
||||
|
Reference in New Issue
Block a user