in reply to Stringification of MockObjects
I assume you are building your own Mock Objects, and not using Test::MockObject. In which case, all you need to do to automatically stringify your object is to make them overload the "" operator.
I think this will do what you are looking for.# assuming there is a stringify method # that does the right thing use overload ('""' => \&stringify);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Stringification of MockObjects
by water (Deacon) on May 20, 2004 at 01:10 UTC | |
by stvn (Monsignor) on May 20, 2004 at 03:00 UTC |