mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Made the write method protected
Tests are not a good reason to make it public.
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
|
||||
namespace Monolog\Handler;
|
||||
|
||||
use Monolog\TestCase;
|
||||
use Monolog\Logger;
|
||||
|
||||
class NullHandlerTest extends \PHPUnit_Framework_TestCase
|
||||
class NullHandlerTest extends TestCase
|
||||
{
|
||||
public function testHandle()
|
||||
{
|
||||
@@ -26,20 +27,4 @@ class NullHandlerTest extends \PHPUnit_Framework_TestCase
|
||||
$handler = new NullHandler(Logger::WARNING);
|
||||
$this->assertFalse($handler->handle($this->getRecord(Logger::DEBUG)));
|
||||
}
|
||||
|
||||
/**
|
||||
* No-op test for coverage
|
||||
*/
|
||||
public function testWrite()
|
||||
{
|
||||
$handler = new NullHandler();
|
||||
$handler->write($this->getRecord());
|
||||
}
|
||||
|
||||
protected function getRecord($level = Logger::WARNING)
|
||||
{
|
||||
return array(
|
||||
'level' => $level,
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user