--TEST-- MongoDB\Driver\ClientEncryption::removeKeyAltName() when key does not exist --SKIPIF-- createClientEncryption([ 'keyVaultNamespace' => CSFLE_KEY_VAULT_NS, 'kmsProviders' => ['local' => ['key' => new MongoDB\BSON\Binary(CSFLE_LOCAL_KEY, 0)]], ]); $keyId = new MongoDB\BSON\Binary(random_bytes(16), MongoDB\BSON\Binary::TYPE_UUID); var_dump($clientEncryption->removeKeyAltName($keyId, 'foo')); ?> ===DONE=== --EXPECT-- NULL ===DONE===