P is for Practical | |
PerlMonks |
Re: RFC Mocking an Accessor with Test::MockObjectby chromatic (Archbishop) |
on Aug 16, 2010 at 20:51 UTC ( [id://855358]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Meditations
|
|