PHOENIX — Maybe the Milwaukee Brewers and Arizona Diamondbacks have done the Dodgers a favor these past four days, offering them a reminder that things are not always filled with Gatorade baths and national magazine covers.

“It’s good for us,” third baseman Justin Turner said, offering that perspective after Hyun-Jin Ryu was touched for three home runs in four innings Wednesday night and the Dodgers lost to the Diamondbacks, 6-4. “It’s good for us to go through and struggle and find a way to come through it.

“It’s good for us, going through adversity, dealing with stuff we haven’t dealt with in awhile.”

It has been a long while indeed.

The loss extends the Dodgers’ losing streak to four games. It is the first time they have lost four consecutive games since May 18-21, 2016 when they lost twice in Anaheim and twice (both on walk-offs) in San Diego. They have lost six of their past 10 – the first time since April they had a losing record in any 10-game stretch. They will lose consecutive series for the first time since the season’s first month

“I don’t want to say it came easy to us these past 2½ months,” Turner said of the Dodgers’ 56-11 run before this losing streak. “But the results have been good all the time. When everything is going good all the time, to get punched in the face like this – it’s good.

“It doesn’t matter what the standings say. I don’t think anyone’s content with where we are in the standings. I don’t think anyone’s slacked off. But it’s a good reminder.”

These four losses have come against two teams with more to play for at this point in the season than the Dodgers have. The Diamondbacks lead the National League wild-card standings. The Brewers have closed to within three games of the Colorado Rockies for the second wild-card spot.

That is probably not a coincidence.

“I don’t think it’s a coincidence,” Dodgers manager Dave Roberts agreed. “This time of year, there’s teams that are going in two different directions. These last two teams, the Diamondbacks and the Brewers, are playing for a lot right now and you see the energy, the intent. Even with that, they have to have good pitching and they’re getting it.

“For us, I know there’s no letdown. We’re competing. It’s just we’ve got to get that good start tomorrow.”