Interactions between homogenization and phase-transition processes