📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-07-12 04:43:42
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php80-pecl-mongodb_1.18.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php80-pecl-mongodb_1.18.1-1.el8/tests
🔄 Refresh
✏️
Editing: manager-startSession_error-002.phpt
Read Only
--TEST-- MongoDB\Driver\Manager::startSession() snapshot and causalConsistency cannot both be true --DESCRIPTION-- Session spec prose test #1: Setting both snapshot and causalConsistency to true is not allowed https://github.com/mongodb/specifications/blob/master/source/sessions/tests/README.rst#setting-both-snapshot-and-causalconsistency-to-true-is-not-allowed --SKIPIF-- <?php require __DIR__ . "/../utils/basic-skipif.inc"; ?> <?php skip_if_not_libmongoc_crypto(); ?> <?php skip_if_not_live(); ?> --FILE-- <?php require_once __DIR__ . "/../utils/basic.inc"; $manager = create_test_manager(); echo throws(function() use ($manager) { $manager->startSession([ 'causalConsistency' => true, 'snapshot' => true, ]); }, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n"; ?> ===DONE=== <?php exit(0); ?> --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Only one of "causalConsistency" and "snapshot" can be enabled ===DONE===
💾 Save Changes
❌ Cancel