Beats me, though it's very close to bedtime here. I tried the following to no avail:
my $tmoe = Test::MockObject::Extends->new( $foo ); overload::OVERLOAD( ref $tmoe, '""' => sub { "mock stringy\n" }, 'fallback' => sub { "default mock overload\n" } );
My guess is that the magic's not registering properly, though I have no idea why that should be. Calling ("" directly works.
In reply to Re: Stringification of MockObjects
by chromatic
in thread Stringification of MockObjects
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |