An Introduction to Test::MockDBI (O'Reilly)
[Posted July 27, 2005 by cook]
Mark Leighton Fisher
introduces Perl's Test::MockDBI on O'Reilly.
"
Test::MockDBI mocks up the entire DBI API by using Test::MockObject::Extends to substitute a Test::MockObject::Extends object in place of the DBI. A feature of this approach is that if the DBI API changes (and you use that change), you will notice during testing if you haven't upgraded Test::MockDBI, as your program will complain about missing DBI API method(s)"
(
Log in to post comments)