[Pdx-pm] interesting testing hole thats been dug
chromatic
chromatic at wgz.org
Thu Jan 4 11:30:11 PST 2007
On Thursday 04 January 2007 10:04, Wil Cooley wrote:
> Yes, that certainly makes sense. It obviously doesn't make sense to
> require $obj->isa('Net::FTP'), because with duck-typing it doesn't
> actually have to be a subclass. How thoroughly should I test with
> $obj->can() for the object's abilities?
Using Test::MockObject::Extends gives you a mock object that actually is-a
appropriately.
-- c
More information about the Pdx-pm-list
mailing list