Werth hit his third home run of spring training on Saturday, leading off the fourth inning against Hayden Penn. Chase Utley added two singles and drove in a run for the Phillies.
Happ allowed one run and five hits, completing a spring training in which he posted a 3.79 ERA in 21 1/3 innings. He is slated to be the Phillies' No. 4 starter this season.
The defending NL champions will open the regular season Monday against the Nationals in a game that will feature President Barack Obama throwing out the first pitch.
The Pirates return to PNC Park to open their season Monday against the Los Angeles Dodgers.