Subject: | Bug in test t/namespace.t |
On the line 58:
::like $@, qr/Can't locate object method "div" via package "htm"/, 'package htm is intact';
You should not check perl's diagnostic messages, as they are subject to change.
In particular, there was a bug in perl which caused code like
htm::div {};
produce message "Can't locate object method "div" via package "htm""
when there is no method htm::div.
Since perl 5.21.7 this was fixed and now message is "Can't call method "div" without a package or object reference" because you can't call method without passing first arg.
Nevertheless i'd suggest you NOT to check perl's diagnostic messages. Therefore the best solution would be just deleting line 58. Because you've already checked that that method call croaked.