public function testSessionLocking()
{
$lockMaxWait = 2;
ini_set('max_execution_time', $lockMaxWait);
$this->redis->expects($this->exactly($lockMaxWait))->method('setnx')->with($this->equalTo('session_symfony.lock'), $this->equalTo('1'));
$handler = new RedisSessionHandler($this->redis, array(), 'session', true, 1000000);
$handler->read('_symfony');
}