#!perl -T
use strict;
use warnings;
-use Test::More tests => 1;
+
+use Test::More;
+BEGIN {
+ if (eval "require Class::Method::Modifiers; 1") {
+ plan tests => 1;
+ }
+ else {
+ plan skip_all => "Class::Method::Modifiers required for this test";
+ }
+}
my @seen;
my @expected = ("before 4",
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 4;
+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 Mouse::Util ':test';
my @calls;