--TEST-- MongoDB\Driver\Session debug output (after ending session) --SKIPIF-- --FILE-- startSession(); $command = new MongoDB\Driver\Command(['ping' => 1]); $manager->executeCommand(DATABASE_NAME, $command, ['session' => $session]); $session->endSession(); var_dump($session); ?> ===DONE=== --EXPECTF-- object(MongoDB\Driver\Session)#%d (%d) { ["ended"]=> bool(true) } ===DONE===