Duplicate a WordPress Install for Testing Purposes

I sometimes use this plugin

http://wordpress.org/extend/plugins/duplicator/

it works pretty well if your server enviroment meets it’s requirements.

Otherwise, it’s the good ole, mysql dump route that the other guys explained.