use Test::Requires in tests
[gitmo/Class-MOP.git] / t / 050_scala_style_mixin_composition.t
index 3c46368..b3c5376 100644 (file)
@@ -3,10 +3,9 @@ use warnings;
 
 use Test::More;
 
-BEGIN {
-    eval "use SUPER 1.10";
-    plan skip_all => "SUPER 1.10 required for this test" if $@;
-}
+use Test::Requires {
+    'SUPER' => 1.10, # skip all if not installed
+};
 
 =pod