David Silva scored twice on Saturday as Spain extended their unbeaten run to 15 matches by thrashing Costa Rica.
Full-back Jordi Alba drilled an unstoppable opener before Alvaro Morata pounced when Silva's cross was spilled.
Costa Rica's Francisco Calvo slammed a clearance against a team-mate after half-time, allowing Silva to finish.
Manchester City's Silva added a second from 18 yards after winning the ball with a slide tackle on the wing and Andres Iniesta completed the scoring.
The Barcelona midfielder ran unchallenged from the halfway line before lashing a dipping strike into the bottom corner from 25 yards.
It was a classy finish to a dominant friendly display as Costa Rica, who have qualified for the World Cup, failed to manage a shot on target at Malaga's Estadio La Rosaleda, according to a BBC report.