--TEST-- MongoDB\Driver\Session::getOperationTime() --SKIPIF-- --FILE-- startSession(); echo "Initial operation time:\n"; var_dump($session->getOperationTime()); $command = new MongoDB\Driver\Command(['ping' => 1]); $manager->executeCommand(DATABASE_NAME, $command, ['session' => $session]); echo "\nOperation time after command:\n"; var_dump($session->getOperationTime()); ?> ===DONE=== --EXPECTF-- Initial operation time: NULL Operation time after command: object(MongoDB\BSON\Timestamp)#%d (%d) { ["increment"]=> string(%d) "%d" ["timestamp"]=> string(%d) "%d" } ===DONE===