Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Test::MockObject and imported functions

by smerritt (Initiate)
on Mar 14, 2008 at 03:22 UTC ( [id://674131]=note: print w/replies, xml ) Need Help??


in reply to Test::MockObject and imported functions

You might consider Test::Resub. That would look something like this:
my $handle = Test::Resub->new({ name => 'Foo::bar', code => sub { "mocked out behavior" }, }); # now do something that calls Foo::bar

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://674131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-03-28 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found