I'm just testing that I've got exceptions for all the things which can go wrong.This seems like a good candidate for Mock objects. Instead of a true DBI object, create an object that would fail the first prepare call it gets and pass it to your code in your tests.
In reply to Re: How can I make DBI's prepare() fail? [MySQL]
by Anonymous Monk
in thread How can I make DBI's prepare() fail? [MySQL]
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |