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

Merge remote-tracking branch 'Topface/locking-stream'

Conflicts:
	src/Monolog/Handler/StreamHandler.php
This commit is contained in:
Jordi Boggiano
2014-07-28 20:08:28 +02:00
2 changed files with 25 additions and 1 deletions

View File

@@ -53,6 +53,17 @@ class StreamHandlerTest extends TestCase
$handler->handle($this->getRecord());
}
/**
* @covers Monolog\Handler\StreamHandler::__construct
* @covers Monolog\Handler\StreamHandler::write
*/
public function testWriteLocking()
{
$temp = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'monolog_locked_log';
$handler = new StreamHandler($temp, Logger::DEBUG, true, null, true);
$handler->handle($this->getRecord());
}
/**
* @expectedException LogicException
* @covers Monolog\Handler\StreamHandler::__construct