--TEST-- MongoDB\BSON\toJSON(): Encoding JSON with duplicate field names --FILE-- ===DONE=== --EXPECT-- { "foo" : "bar", "foo" : "baz" } ===DONE===