The Espresso Tonic may have foamed up if the drink was assembled out of order. Be sure to pour the tonic in first and the espresso second. If it was layered correctly, then the espresso may have been poured onto the tonic too quickly.