mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Relax the _digest() test for PHP < 8.1
Just make sure the method is sound. We don't really care about specific exception messages.
This commit is contained in:
committed by
Michael Grunder
parent
d4600a2846
commit
0debad4c83
+6
-6
@@ -8786,12 +8786,12 @@ 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.*$/'
|
||||
);
|
||||
/* Make sure we don't crash when XXH3 isn't available */
|
||||
try {
|
||||
$this->redis->_digest('foo');
|
||||
} catch (Exception $ex) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user