X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fc3_mro.t;h=d987544e93644a9581dfa0c3b7dbb764b3bf8117;hb=7d9921b1634786926b83a7c9de0dafc69ad506d7;hp=57c3bdb7c2c9ebd05a810cf2922a3146b94a9089;hpb=2f3812528068bc1d9f7840067f0c03d36cd47e6d;p=catagits%2FCatalyst-Runtime.git diff --git a/t/c3_mro.t b/t/c3_mro.t index 57c3bdb..d987544 100644 --- a/t/c3_mro.t +++ b/t/c3_mro.t @@ -4,9 +4,7 @@ use warnings; use Test::More; require Catalyst; require Module::Pluggable::Object; - -eval "require Class::C3"; -plan skip_all => "This test requires Class::C3" if $@; +use MRO::Compat; # Get a list of all Catalyst:: packages in blib via M::P::O my @cat_mods; @@ -34,7 +32,7 @@ plan tests => scalar @cat_mods; # foreach my $cat_mod (@cat_mods) { eval " require $cat_mod "; - eval { Class::C3::calculateMRO($cat_mod) }; + eval { mro::get_linear_isa($cat_mod, 'c3') }; ok(!$@, "calculateMRO for $cat_mod: $@"); }