X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F027-modifiers.t;h=84e3930063df4d8a4f4b54d8cbe1a348f11e7045;hb=11d415286701d3b51e517cb6826138808967cb89;hp=a12da33266e9c381d5b6ca7071e70d4a2946bede;hpb=879a325b7d068520f613491bdda2316aca71c132;p=gitmo%2FMouse.git diff --git a/t/027-modifiers.t b/t/027-modifiers.t index a12da33..84e3930 100644 --- a/t/027-modifiers.t +++ b/t/027-modifiers.t @@ -1,7 +1,16 @@ #!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",