X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F403-method-modifiers.t;h=8a4317f79941a657aee29bb41ac4abbc28c3d69f;hb=53c495ce524c95ee0fc1ee13f20edeeb382ef89f;hp=838adee24951e14f93982886a5fb747b0da95abb;hpb=8c831d08b0d23c9dfcc4a85f6444915c988b5538;p=gitmo%2FMouse.git diff --git a/t/403-method-modifiers.t b/t/403-method-modifiers.t index 838adee..8a4317f 100644 --- a/t/403-method-modifiers.t +++ b/t/403-method-modifiers.t @@ -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::Fast } || eval {require Class::Method::Modifiers }) { + plan tests => 4; + } + else { + plan skip_all => "Class::Method::Modifiers required for this test"; + } +} +use Test::Exception; my @calls; my ($before, $after, $around);