There currently is one option to travel by night train from Wroclaw (Poland) to Berlin (Germany), taking approximately 6 hours: Namely the EC 430 operated by PKP Intercity.
PKP Intercity, Poland's national long-distance operator, connects cities across Poland and beyond its borders.