Explorar o código

Removed unnecessary test code and corrected doc style

Theo Kouzelis %!s(int64=11) %!d(string=hai) anos
pai
achega
9752eb9bf3

+ 7 - 6
src/Monolog/Handler/StreamHandler.php

@@ -29,12 +29,13 @@ class StreamHandler extends AbstractProcessingHandler
     protected $useLocking;
 
     /**
-     * @param  Resource|string $stream
-     * @param  integer         $level          The minimum logging level at which this handler will be triggered
-     * @param  Boolean         $bubble         Whether the messages that are handled can bubble up the stack or not
-     * @param  int|null        $filePermission Optional file permissions (default (0644) are only for owner read/write)
-     * @param  Boolean         $useLocking     Try to lock log file before doing any writes
-     * @throws InvalidArgumentException        If stream is not a resource or string
+     * @param resource|string $stream
+     * @param integer         $level          The minimum logging level at which this handler will be triggered
+     * @param Boolean         $bubble         Whether the messages that are handled can bubble up the stack or not
+     * @param int|null        $filePermission Optional file permissions (default (0644) are only for owner read/write)
+     * @param Boolean         $useLocking     Try to lock log file before doing any writes
+     *
+     * @throws InvalidArgumentException If stream is not a resource or string
      */
     public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false)
     {

+ 0 - 2
tests/Monolog/Handler/StreamHandlerTest.php

@@ -88,12 +88,10 @@ class StreamHandlerTest extends TestCase
      * @dataProvider invalidArgumentProvider
      * @expectedException InvalidArgumentException
      * @covers Monolog\Handler\StreamHandler::__construct
-     * @covers Monolog\Handler\StreamHandler::write
      */
     public function testWriteInvalidArgument($invalidArgument)
     {
         $handler = new StreamHandler($invalidArgument);
-        $handler->handle($this->getRecord());
     }
     
     /**