--TEST-- MongoDB\BSON\Regex initialization will alphabetize flags --FILE-- ===DONE=== --EXPECTF-- object(MongoDB\BSON\Regex)#%d (%d) { ["pattern"]=> string(6) "regexp" ["flags"]=> string(6) "ilmsux" } ===DONE===