in reply to Writing Test Case for Database Connectivity
G'day manorhce,
DBD::Mock might do what you want. I haven't tried it myself.
-- Ken