On Sat, Apr 20, 2002 at 11:51:30AM -0700, chromatic wrote:
> Attached is a patch to make Test::More do the right thing (as I see it) in this
> case. Previously, it called can() on the class name, which obviously doesn't
> work here.
You're right.
> I suspect something similar should be done for
I'm writing a new module called Test::MockObject. It has a test that reads:
$mock->add('foo');
can_ok( $mock, 'foo' );
Test::MockObject has a custom can() method, which checks instance data to decide if
the object can handle the method:
sub can {
my ($se