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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: RFC Mocking an Accessor with Test::MockObject
by ait (Hermit) on Aug 16, 2010 at 23:16 UTC | |
by chromatic (Archbishop) on Aug 17, 2010 at 01:49 UTC | |
by ait (Hermit) on Aug 23, 2010 at 01:04 UTC | |
by jdporter (Paladin) on Aug 23, 2010 at 12:29 UTC | |
by ait (Hermit) on Aug 23, 2010 at 16:06 UTC | |
|
In Section
Meditations