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 reply to Re^3: Test::MockObject::Extends and FileHandle
by chromatic
in thread Test::MockObject::Extends and FileHandle
by SilasTheMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |