Existing RANGE_PREVIEW constants are deprecated in favor of new RANGE constants introduced in libmongoc 1.28.0. PHP 8.3+ emits deprecation messages when accessing the RANGE_PREVIEW constants, so we ignore such output in the constants test. It wasn't worth splitting that test by PHP version.
Support trimFactor range option.
Specify default value for trimFactor range option in tests. This is temporary until sparsity and trimFactor are made optional prior to the GA release for range indexes (PHPC-2403).
* Implement ClientEncryption::encryptExpression()
Define algorithm and query type constants for range preview
* Handle BSON encoding exceptions in encrypt/decrypt
Note that it is not possible to write a test for decrypt() since Binary instances always encode to BSON.