in reply to Re^4: Who am I? Inheritance question
in thread Who am I? Inheritance question
Being an mock object implies that it's blessed in the class that it's mocking.
It does? That's the way that the current mock object CPAN modules tend to do it - but it doesn't have to be. I've done mocking with subclasses, and with completely unrelated classes that duck type to the bit that I happen to be testing.
|
|---|