--TEST-- MongoDB\BSON\Regex::jsonSerialize() return value (without flags) --FILE-- jsonSerialize()); ?> ===DONE=== --EXPECT-- array(2) { ["$regex"]=> string(7) "pattern" ["$options"]=> string(0) "" } ===DONE===