You're missing a couple of things. 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.
Otherwise, the method form is really the best way I know of to make this code work. Perl 5's too clever in figuring out the indirect invocation syntax here.
In reply to Re: Test::MockObject::Extends and FileHandle
by chromatic
in thread Test::MockObject::Extends and FileHandle
by SilasTheMonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |