zigorou/p5-test-mock-guard — pull request #3 by belden (2012-06-15 20:17:47+00:00)
Title: handle prototyped subs correctly

Simple fix for mock_guard() to handle prototypes correctly.

Note that not all versions of Scalar::Util offer a set_prototype; let me know if this is a concern for you and I'll provide a second patch to solve this. (I ran into this when rewriting Test::Resub recently.)