Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Test::Mock::Class::DBI

by Corion (Patriarch)
on Jul 24, 2005 at 20:24 UTC ( [id://477611]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://477611]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-03-28 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found