1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-31 18:30:15 +02:00
This commit is contained in:
Jordi Boggiano
2016-05-26 20:54:06 +01:00
parent 85e43a5e7b
commit f200e79879
115 changed files with 1138 additions and 1123 deletions

View File

@@ -42,11 +42,11 @@ class LogEntriesHandlerTest extends TestCase
public function testWriteBatchContent()
{
$records = array(
$records = [
$this->getRecord(),
$this->getRecord(),
$this->getRecord(),
);
];
$this->createHandler();
$this->handler->handleBatch($records);
@@ -59,11 +59,11 @@ class LogEntriesHandlerTest extends TestCase
private function createHandler()
{
$useSSL = extension_loaded('openssl');
$args = array('testToken', $useSSL, Logger::DEBUG, true);
$args = ['testToken', $useSSL, Logger::DEBUG, true];
$this->res = fopen('php://memory', 'a');
$this->handler = $this->getMock(
'\Monolog\Handler\LogEntriesHandler',
array('fsockopen', 'streamSetTimeout', 'closeSocket'),
['fsockopen', 'streamSetTimeout', 'closeSocket'],
$args
);