http://www.perlmonks.org?node_id=855358


in reply to RFC Mocking an Accessor with Test::MockObject

If I were to write T::MO again, I'd write Test::MockObject::Extends first, then perhaps generalize to T::MO. The less you need to mock, the better your tested API and the more robust your tests.

If you have to mock an accessor, you're probably mocking too much.