Skip to content

New method which can return mocked method. #3

wants to merge 1 commit into from

2 participants


I put simply method which can return reference of mocked method.

I have problem when I want to now when program run some method,
than first I mocked this method to some own function and when called this mocked method,
than I can call all code too, such as this example:

mock("CGI","header", sub {
# ... doing something
$code = mocked("CGI", "header");
&$code(); # run old mocked method

sukria commented Sep 14, 2013

Thanks for the pull request, but can you provide update the unit tests as well, to cover the new "mocked" method?


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.