mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 21:26:43 +02:00
Minor fixes
This commit is contained in:
@@ -65,6 +65,6 @@ class BufferHandler extends AbstractHandler
|
||||
*/
|
||||
protected function write(array $record)
|
||||
{
|
||||
throw new \BadMethodCallException('This method should not be called directly on the FingersCrossedHandler.');
|
||||
throw new \BadMethodCallException('This method should not be called directly on the BufferHandler.');
|
||||
}
|
||||
}
|
@@ -35,7 +35,7 @@ class BufferHandlerTest extends TestCase
|
||||
$handler = new BufferHandler($test);
|
||||
$handler->handle($this->getRecord(Logger::WARNING));
|
||||
$handler->handle($this->getRecord(Logger::DEBUG));
|
||||
unset ($handler);
|
||||
unset($handler);
|
||||
$this->assertTrue($test->hasWarningRecords());
|
||||
$this->assertTrue($test->hasDebugRecords());
|
||||
}
|
||||
|
@@ -13,6 +13,9 @@ namespace Monolog;
|
||||
|
||||
class TestCase extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @return array Record
|
||||
*/
|
||||
protected function getRecord($level = Logger::WARNING, $message = 'test')
|
||||
{
|
||||
return array(
|
||||
|
Reference in New Issue
Block a user