diff --git a/tests/Monolog/Handler/RedisHandlerTest.php b/tests/Monolog/Handler/RedisHandlerTest.php index b6cc8524..7ee409a1 100644 --- a/tests/Monolog/Handler/RedisHandlerTest.php +++ b/tests/Monolog/Handler/RedisHandlerTest.php @@ -109,7 +109,10 @@ class RedisHandlerTest extends TestCase { $redis = $this->createPartialMock('Predis\Client', ['transaction']); - $redisTransaction = $this->createPartialMock('Predis\Client', ['rPush', 'lTrim']); + $redisTransaction = $this->getMockBuilder('Predis\Client') + ->disableOriginalConstructor() + ->addMethods(['rPush', 'lTrim']) + ->getMock(); $redisTransaction->expects($this->once()) ->method('rPush')