in reply to Re^2: Test::MockObject::Extends and FileHandle
in thread Test::MockObject::Extends and FileHandle
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Test::MockObject::Extends and FileHandle
by SilasTheMonk (Chaplain) on Jan 23, 2010 at 19:30 UTC |