1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Removed unnecessary test code and corrected doc style

This commit is contained in:
Theo Kouzelis
2014-09-20 12:05:16 +01:00
parent d52085a32f
commit 9752eb9bf3
2 changed files with 7 additions and 8 deletions

View File

@@ -29,11 +29,12 @@ class StreamHandler extends AbstractProcessingHandler
protected $useLocking; protected $useLocking;
/** /**
* @param Resource|string $stream * @param resource|string $stream
* @param integer $level The minimum logging level at which this handler will be triggered * @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 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 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 * @param Boolean $useLocking Try to lock log file before doing any writes
*
* @throws InvalidArgumentException If stream is not a resource or string * @throws InvalidArgumentException If stream is not a resource or string
*/ */
public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false) public function __construct($stream, $level = Logger::DEBUG, $bubble = true, $filePermission = null, $useLocking = false)

View File

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