S&P 500's June Swoon Masks Broader Rally, July Earnings Next Test