They beat a strong Socceroos line-up featuring Harry Kewell 2-0, with Liverpool defender Daniel Agger winning and converting a penalty, before Andreas Bjelland netted his first international goal.
Portugal were given a pre-tournament wake-up call by Turkey, losing 3-1 in Lisbon.
Umut Bulut's brace put Turkey 2-0 ahead and, although Nani got one back, the visitors held on and increased their lead with Pepe's own goal.
Co-hosts Poland enjoyed a routine win, beating Andorra 4-0 in Warsaw.
Ludovic Obraniak got them on their way and Robert Lewandowski made it two before penalties from Jakub Blaszczykowski and Marcin Wasilewski sealed the rout.
In Oslo, all the action came late on as Norway and Croatia drew 1-1.
Eduardo gave the visitors the lead with 11 minutes left, only for Tarik Elyounoussi to level two minutes into stoppage time.
Results from Saturday's international friendlies
Denmark 2-0 Australia
Portugal 1-3 Turkey
Poland 4-0 Andorra
Norway 1-1 Croatia