In other words, to make sure the code compiles without warnings if the mode isn't there, this should work:
warning_like( sub { warn "warning!" }, qr(warning), 'basic warning');
In reply to Re^2: Test::Warn, 'use' vs 'require'
by Joost
in thread Test::Warn, 'use' vs 'require'
by asarih
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |