1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-01 02:40:24 +02:00

Fix tests

This commit is contained in:
Jordi Boggiano
2016-03-09 11:43:02 +00:00
parent d04afcb5d0
commit 81045d5974

View File

@@ -71,7 +71,7 @@ class RedisHandlerTest extends TestCase
public function testRedisHandleCapped() 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 uses multi
$redis->expects($this->once()) $redis->expects($this->once())
@@ -87,7 +87,7 @@ class RedisHandlerTest extends TestCase
->will($this->returnSelf()); ->will($this->returnSelf());
$redis->expects($this->once()) $redis->expects($this->once())
->method('execute') ->method('exec')
->will($this->returnSelf()); ->will($this->returnSelf());
$record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34)); $record = $this->getRecord(Logger::WARNING, 'test', array('data' => new \stdClass, 'foo' => 34));