Tell me who your friends are

What is the origin of "Tell me who your friends are, I'll tell you who you are"?

It's a snowclone of a famous quotation by the 18th-19th century French gastronome Brillat-Savarin, "Tell me what you eat, and I will tell you what you are." (VSD)