Since it doesn't gain any experience, is it safe to assume that the secondary effects of fainting are also neglected? Seeing how consumed items are returned after each battle, as well?
Some battles, most notably battles fought in certain battle areas, will not affect the participating Pokémon's experience, EVs, or friendship.
source