mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-09 14:46:46 +02:00
Fixes 5.3 compatibility in test cases
This commit is contained in:
@@ -101,11 +101,6 @@ class RedisHandlerTest extends TestCase
|
||||
{
|
||||
$redis = $this->getMock('Predis\Client', array('transaction'));
|
||||
|
||||
// Redis uses multi
|
||||
$redis->expects($this->once())
|
||||
->method('transaction')
|
||||
->will($this->returnCallback(function($cb){
|
||||
|
||||
$redisTransaction = $this->getMock('Predis\Client', array('lpush', 'ltrim'));
|
||||
|
||||
$redisTransaction->expects($this->once())
|
||||
@@ -116,6 +111,10 @@ class RedisHandlerTest extends TestCase
|
||||
->method('ltrim')
|
||||
->will($this->returnSelf());
|
||||
|
||||
// Redis uses multi
|
||||
$redis->expects($this->once())
|
||||
->method('transaction')
|
||||
->will($this->returnCallback(function($cb) use ($redisTransaction){
|
||||
$cb($redisTransaction);
|
||||
}));
|
||||
|
||||
|
Reference in New Issue
Block a user