From 19ca9d6a38807d745c074b01b1e9d598d3d7b24e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Mon, 24 Nov 2025 10:54:12 +0100 Subject: [PATCH] PHPLIB-1725 Add Session::getSnapshotTime in spec tests [skip ci] --- tests/UnifiedSpecTests/Operation.php | 3 +++ tests/UnifiedSpecTests/Util.php | 1 + tests/specifications | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/UnifiedSpecTests/Operation.php b/tests/UnifiedSpecTests/Operation.php index 8cb4509dd..b225fc2f1 100644 --- a/tests/UnifiedSpecTests/Operation.php +++ b/tests/UnifiedSpecTests/Operation.php @@ -750,6 +750,9 @@ private function executeForSession(Session $session) case 'endSession': return $session->endSession(); + case 'getSnapshotTime': + throw new \RuntimeException('TODO: Implement getSnapshotTime'); + case 'startTransaction': return $session->startTransaction($args); diff --git a/tests/UnifiedSpecTests/Util.php b/tests/UnifiedSpecTests/Util.php index e134cb109..eee752cf5 100644 --- a/tests/UnifiedSpecTests/Util.php +++ b/tests/UnifiedSpecTests/Util.php @@ -128,6 +128,7 @@ final class Util 'abortTransaction' => [], 'commitTransaction' => [], 'endSession' => [], + 'getSnapshotTime' => [], 'startTransaction' => ['maxCommitTimeMS', 'readConcern', 'readPreference', 'writeConcern'], 'withTransaction' => ['callback', 'maxCommitTimeMS', 'readConcern', 'readPreference', 'writeConcern'], ], diff --git a/tests/specifications b/tests/specifications index d41d48b90..08ba029dc 160000 --- a/tests/specifications +++ b/tests/specifications @@ -1 +1 @@ -Subproject commit d41d48b90ef22aedae934dd22f3a21c65b5a13bc +Subproject commit 08ba029dc8a659d8d3874369e10cb12cf3584b2f