mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Make sure _digest throws an exception in PHP < 8.1
This commit is contained in:
committed by
Michael Grunder
parent
00c62de277
commit
107cc7aacb
@@ -8704,6 +8704,13 @@ class Redis_Test extends TestSuite {
|
||||
);
|
||||
|
||||
$this->redis->setOption(Redis::OPT_SERIALIZER, Redis::SERIALIZER_NONE);
|
||||
} else {
|
||||
$this->assertThrowsMatch($this->redis,
|
||||
function($r) {
|
||||
$r->_digest('foo');
|
||||
},
|
||||
'/^.*8\.1.*$/'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user