P is for Practical | |
PerlMonks |
Re^3: Test::MockObject::Extends and FileHandleby chromatic (Archbishop) |
on Jan 23, 2010 at 18:54 UTC ( [id://819222]=note: print w/replies, xml ) | Need Help?? |
If I comment out the fake_new line I can see that there is no faking at all. Sure there is; pass an object to the T::MO::E constructor. The object you get back is your mock object. Any methods you add to that object are mock objects for that specific method. Thus you need to use that object (the T::MO::E instance), not a new object.
In Section
Seekers of Perl Wisdom
|
|