use Test::More;
BEGIN {
- unless ( eval 'use Test::Warn; 1' ) {
- plan skip_all => 'These tests require Test::Warn';
- }
- else {
- plan tests => 18;
- }
+ eval 'use Test::Warn';
+ plan skip_all => 'These tests require Test::Warn' if $@;
}
{
'singleton is not randomly destroyed'
);
}
+
+done_testing;