use Scalar::Util qw( refaddr );
use Test::More;
-BEGIN {
- unless ( eval 'use Test::Warn; 1' ) {
- plan skip_all => 'These tests require Test::Warn';
- }
- else {
- plan tests => 18;
- }
-}
+use Test::Requires {
+ 'Test::Warn' => 0.01, # skip all if not installed
+};
+
{
package MooseX::Singleton::Test;
'singleton is not randomly destroyed'
);
}
+
+done_testing;