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.
In reply to Re^5: Who am I? Inheritance question
by adrianh
in thread Who am I? Inheritance question
by kwaping
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |