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:
michael-grunder
2025-11-27 12:09:46 -08:00
committed by Michael Grunder
parent d4600a2846
commit 0debad4c83
+6 -6
View File
@@ -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) {
}
}
}