From 81045d59740a686121d85281e7de245d49b1236a Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 9 Mar 2016 11:43:02 +0000 Subject: [PATCH] Fix tests --- tests/Monolog/Handler/RedisHandlerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Monolog/Handler/RedisHandlerTest.php b/tests/Monolog/Handler/RedisHandlerTest.php index 97e0d948..689d5278 100644 --- a/tests/Monolog/Handler/RedisHandlerTest.php +++ b/tests/Monolog/Handler/RedisHandlerTest.php @@ -71,7 +71,7 @@ class RedisHandlerTest extends TestCase public function testRedisHandleCapped() { - $redis = $this->getMock('Redis', array('multi', 'rpush', 'ltrim', 'execute')); + $redis = $this->getMock('Redis', array('multi', 'rpush', 'ltrim', 'exec')); // Redis uses multi $redis->expects($this->once()) @@ -87,7 +87,7 @@ class RedisHandlerTest extends TestCase ->will($this->returnSelf()); $redis->expects($this->once()) - ->method('execute') + ->method('exec') ->will($this->returnSelf()); $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));