Skip to content

Commit f75d3a8

Browse files
authored
PHPLIB-878: Spec tests for queryable encryption range indexes (#1064)
* Allow extra fields in aggregate results Most operations that use ASSERT_SAME_DOCUMENT and ASSERT_SAME_DOCUMENTS should technically use ASSERT_MATCHES_DOCUMENT and ASSERT_DOCUMENTS_MATCH, respectively; however, this is the minimum change needed to satisfy new CSFLE spec tests. Related to dc1bb17 * Remove skips for queryable encryption range index spec tests Decimal tests are skipped until bundled libmongocrypt can link a Decimal128 library (see: PHPC-2207) Long tests are skipped pending a workaround for preserving Int64 types in spec tests. * Range explicit encryption prose tests * Decode field paths as BSON to preserve BSON int64 types * PHPLIB-1110: Consolidate data files for CSFLE spec and prose tests Synced with mongodb/specifications@c4f3fab
1 parent d95e762 commit f75d3a8

30 files changed

+965
-800
lines changed

tests/SpecTests/ClientSideEncryption/FunctionalTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected static function insertKeyVaultData(Client $client, ?array $keyVaultDat
6969
$collection->insertMany($keyVaultData);
7070
}
7171

72-
private function createInt64(string $value): Int64
72+
protected static function createInt64(string $value): Int64
7373
{
7474
$array = sprintf('a:1:{s:7:"integer";s:%d:"%s";}', strlen($value), $value);
7575
$int64 = sprintf('C:%d:"%s":%d:{%s}', strlen(Int64::class), Int64::class, strlen($array), $array);

0 commit comments

Comments
 (0)