--TEST-- MongoDB\Driver\ReadPreference construction (combining hedge with primary read preference) --FILE-- ['enabled' => true]]); }, 'MongoDB\Driver\Exception\InvalidArgumentException'), "\n"; ?> ===DONE=== --EXPECTF-- OK: Got MongoDB\Driver\Exception\InvalidArgumentException hedge may not be used with primary mode ===DONE===