--TEST-- MongoDB\BSON\Regex debug handler with flags omitted --FILE-- ===DONE=== --EXPECTF-- object(MongoDB\BSON\Regex)#%d (%d) { ["pattern"]=> string(6) "regexp" ["flags"]=> string(0) "" } ===DONE===