30 $redis = $this->getMock(
'Predis\Client');
31 $this->assertInstanceof(
'Monolog\Handler\RedisHandler',
new RedisHandler($redis,
'key'));
36 $redis = $this->getMock(
'Redis');
37 $this->assertInstanceof(
'Monolog\Handler\RedisHandler',
new RedisHandler($redis,
'key'));
42 $redis = $this->getMock(
'Predis\Client', array(
'rpush'));
45 $redis->expects($this->once())
47 ->with(
'key',
'test');
53 $handler->handle($record);
58 $redis = $this->getMock(
'Redis', array(
'rpush'));
61 $redis->expects($this->once())
63 ->with(
'key',
'test');
69 $handler->handle($record);
testConstructorShouldWorkWithRedis()
testConstructorShouldThrowExceptionForInvalidRedis()
InvalidArgumentException
getRecord($level=Logger::WARNING, $message='test', $context=array())
Logs to a Redis key using rpush.
testConstructorShouldWorkWithPredis()
const WARNING
Exceptional occurrences that are not errors.