in reply to Writing Test Case for Database Connectivity
DBD::Mock might do what you want. I haven't tried it myself.
Frying pan on the stove
Results (368 votes). Check out past polls.