Jordi Boggiano 14 éve
szülő
commit
7fd13f6aec

+ 1 - 1
src/Monolog/Handler/BufferHandler.php

@@ -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.');
     }
 }

+ 1 - 1
tests/Monolog/Handler/BufferHandlerTest.php

@@ -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());
     }

+ 3 - 0
tests/Monolog/TestCase.php

@@ -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(