Skip to content

New method which can return mocked method.#3

Open
kocoureasy wants to merge 1 commit into
sukria:masterfrom
kocoureasy:master
Open

New method which can return mocked method.#3
kocoureasy wants to merge 1 commit into
sukria:masterfrom
kocoureasy:master

Conversation

@kocoureasy

Copy link
Copy Markdown

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

sukria commented Sep 14, 2013

Copy link
Copy Markdown
Owner

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

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants