in reply to Test::Mock::Class::DBI

What makes a Class::DBI object different from any other object? You can mock both with Test::MockObject

Replies are listed 'Best First'.
Re^2: Test::Mock::Class::DBI
by water (Deacon) on Aug 01, 2005 at 17:59 UTC
    There's lots of magic in CDBI, such as stringification to the primary key (overloading stringification doesn't quite work right in Test::MockObject, test case and bug submitted), lazy inflation, etc.

    While a C:DBI object is indeed just an object, mocking one 'by hand' via T:MO isn't simple.

    My two cents.