in reply to Can't find my method . . .

The documentation for Test::More says that can_ok() is used this way:

can_ok($module, @methods);

That is, it doesn't take a test name. Change your invocation to this:

can_ok( 'YMD::WWWW::DB', 'connect' );