Refactoring
[gitmo/Mouse.git] / t / 403-method-modifiers.t
index 838adee..6c316b3 100644 (file)
@@ -1,8 +1,16 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More tests => 4;
-use Mouse::Util ':test';
+use Test::More;
+BEGIN {
+    if (eval "require Class::Method::Modifiers; 1") {
+        plan tests => 4;
+    }
+    else {
+        plan skip_all => "Class::Method::Modifiers required for this test";
+    }
+}
+use Test::Exception;
 
 my @calls;
 my ($before, $after, $around);