Include method name in immutable methods (fixes #49680)
[gitmo/Class-MOP.git] / t / 107_C3MethodDispatchOrder_test.t
index d20f306..b9b4bdb 100644 (file)
@@ -1,14 +1,14 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 
-use Test::More tests => 5;
+use Test::More;
 use File::Spec;
 
-BEGIN { 
-    use_ok('Class::MOP');    
-    require_ok(File::Spec->catdir('examples', 'C3MethodDispatchOrder.pod'));
+BEGIN {
+    eval "use Algorithm::C3";
+    plan skip_all => "Algorithm::C3 required for this test" if $@;
+    plan tests => 4;use Class::MOP;    
+    require_ok(File::Spec->catfile('examples', 'C3MethodDispatchOrder.pod'));
 }
 
 {