Subject: | addMethod side-effects $^W |
After any direct or indirect call to Test::MockClass::addMethod, $^W is set to 0, masking later warning-meritable problems. The culprit is Hook::WrapSub::wrap_subs and Hook::WrapSub::unwrap_subs, which don't correctly localize an explicit change to $^W. I've submitted a bug against Hook::WrapSub, but it doesn't appear to be under active development.
This can easily by shown by examining $^W before and after any call that invokes addMethod()
---
This is perl, v5.8.5 built for i386-linux-thread-multi