Hi,
I'm looking for a way of mocking a function that has been imported, e.g.
use Foo qw(bar); bar(%params); # <-- I want to mock this
bar() may also be imported implicitly. I know about fake_module(), but the code above will try to call import() on the mock object I've created. Do I have to mock import and somehow hook it into Exporter to export the actual function I want to mock?
In reply to Test::MockObject and imported functions by Mutant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |