mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-25 17:32:28 +01:00
27 lines
740 B
PHP
27 lines
740 B
PHP
--TEST--
|
|
MongoDB\Driver\ClientEncryption::__construct(): Drivers MUST NOT error if tlsDisableOCSPEndpointCheck is set
|
|
--SKIPIF--
|
|
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
|
|
<?php skip_if_not_libmongocrypt(); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once __DIR__ . "/../utils/basic.inc";
|
|
|
|
$clientEncryption = new MongoDB\Driver\ClientEncryption([
|
|
'keyVaultClient' => create_test_manager(),
|
|
'keyVaultNamespace' => CSFLE_KEY_VAULT_NS,
|
|
'kmsProviders' => ['aws' => ['accessKeyId' => 'foo', 'secretAccessKey' => 'bar']],
|
|
'tlsOptions' => ['aws' => ['tlsDisableOCSPEndpointCheck' => true]],
|
|
]);
|
|
|
|
var_dump($clientEncryption);
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
object(MongoDB\Driver\ClientEncryption)#%d (%d) {
|
|
}
|
|
===DONE===
|