Subject: | Interactions with UNIVERSAL::can results in debugger explosions |
For some reason, Test::MockObject behaves differently in the debugger to normal code. This would seem to be due to some strange interaction and feedback with UNIVERSAL::can.
It falsely throws the following
Called UNIVERSAL::can() as a function, not a method at ../lib/Test/MockObject.pm line 118
UNIVERSAL::can::can() called at ../lib/Test/MockObject.pm line 118
Test::MockObject::__ANON__[../lib/Test/MockObject.pm:119]() called at ../lib/Test/MockObject/Extends.pm line 90
Test::MockObject::Extends::__ANON__[../lib/Test/MockObject/Extends.pm:108]() called at t/extends.t line 57
In combination with Test::Warn, this results in all tests dying, and makes it extraordinarily difficult to do debugging of test scripts.