Make sure _digest throws an exception in PHP < 8.1

This commit is contained in:
michael-grunder
2025-11-06 09:48:45 -08:00
committed by Michael Grunder
parent 00c62de277
commit 107cc7aacb
+7
View File
@@ -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.*$/'
);
}
}