First, you have to use the T::MO::E instance ($mock) rather than fake_new() here. fake_new() is for when you don't want to use the other class at all, which is not what you're doing.chromatic, I am sorry this leaves me no wiser. What code exactly am I supposed to use instead of the fake_new line. If I comment out the fake_new line I can see that there is no faking at all. What advance did Wiley offer you for "Test::MockObject for dummies"? I think the book is needed.
In reply to Re^2: Test::MockObject::Extends and FileHandle
by SilasTheMonk
in thread Test::MockObject::Extends and FileHandle
by SilasTheMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |