can_ok($module, @methods). "We can access the ->connect() method" is being treated as the name of a method. Use
can_ok('YMD::WWW::DB','connect')
or
ok( YMD::WWW::DB->can('connect'), 'We can access the ->connect() method' );
The former is probably better.
In reply to Re: Can't find my method . . .
by ikegami
in thread Can't find my method . . .
by hesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |