From f954b4ea842b4ad5419e0705be9a20c88c586890 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 30 Aug 2019 11:46:18 +0200 Subject: [PATCH] Update changelog --- CHANGELOG.md | 5 ++++- tests/Monolog/Handler/RedisHandlerTest.php | 9 +++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e587d687..e0d995ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ -### 2.0.0 (xx) +### 2.0.0 (2019-08-30) * BC Break: This is a major release, see [UPGRADE.md](UPGRADE.md) for details if you are coming from a 1.x release * BC Break: Logger methods log/debug/info/notice/warning/error/critical/alert/emergency now have explicit void return types * Added FallbackGroupHandler which works like the WhatFailureGroupHandler but stops dispatching log records as soon as one handler accepted it + * Added support for RFC3164 (outdated BSD syslog protocol) to SyslogUdpHandler + * Fixed support for UTF-8 when cutting strings to avoid cutting a multibyte-character in half + * Fixed normalizers handling of exception backtraces to avoid serializing arguments in some cases * Fixed date timezone handling in SyslogUdpHandler ### 2.0.0-beta2 (2019-07-06) diff --git a/tests/Monolog/Handler/RedisHandlerTest.php b/tests/Monolog/Handler/RedisHandlerTest.php index 19f2bbc7..b6cc8524 100644 --- a/tests/Monolog/Handler/RedisHandlerTest.php +++ b/tests/Monolog/Handler/RedisHandlerTest.php @@ -42,12 +42,9 @@ class RedisHandlerTest extends TestCase public function testPredisHandle() { - $redis = $this->createPartialMock('Predis\Client', ['rPush']); - - // Predis\Client uses rPush - $redis->expects($this->once()) - ->method('rPush') - ->with('key', 'test'); + $redis = $this->prophesize('Predis\Client'); + $redis->rpush('key', 'test')->shouldBeCalled(); + $redis = $redis->reveal(); $record = $this->getRecord(Logger::WARNING, 'test', ['data' => new \stdClass, 'foo' => 34]);