--TEST-- MongoDB\Driver\Manager::executeCommand() cannot combine session with unacknowledged write concern --SKIPIF-- --FILE-- COLLECTION_NAME, 'documents' => [['x' => 1]], ]); $manager->executeCommand(DATABASE_NAME, $command, [ 'session' => $manager->startSession(), 'writeConcern' => new MongoDB\Driver\WriteConcern(0), ]); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== --EXPECT-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException Cannot combine "session" option with an unacknowledged write concern ===DONE===