I prefer Test::MockObject::Extends these days. The nice point is just as you say; when you need really precise control either to make something happen that's difficult to invoke normally or to work around something really complex that is difficult to test.
Complex server initialization or failure types are the two main items that come to my mind.
In reply to Re^2: Smallish mock objects
by chromatic
in thread Smallish mock objects
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |