I'm looking for some ideas or techniques to write tests against code that uses an EasyDBI session
for accessing data in mysql
. I don't want the EasyDBI session
to be aware of being tested, so I was hoping to find a way to mock a DSN
or something like that. But, It's not clear to me how I might do that.
Anyone had/solved this problem before?