in reply to Re: Test::MockObject::Extends and FileHandle
in thread Test::MockObject::Extends and FileHandle
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Test::MockObject::Extends and FileHandle
by chromatic (Archbishop) on Jan 23, 2010 at 18:54 UTC | |
by SilasTheMonk (Chaplain) on Jan 23, 2010 at 19:30 UTC | |
|
Re^3: Test::MockObject::Extends and FileHandle
by Khen1950fx (Canon) on Jan 23, 2010 at 12:12 UTC | |
by SilasTheMonk (Chaplain) on Jan 23, 2010 at 14:10 UTC |