Don't use Test::More in core tests (at least, where
[p5sagit/p5-mst-13.2.git] / t / mro / next_method_used_with_NEXT.t
index f7a8c11..e8d85fc 100644 (file)
@@ -2,14 +2,10 @@
 
 use strict;
 use warnings;
+use NEXT;
 
-use Test::More;
-
-BEGIN {
-    eval "use NEXT";
-    plan skip_all => "NEXT required for this test" if $@;
-    plan tests => 4;
-}
+require './test.pl';
+plan(tests => 4);
 
 {
     package Foo;
@@ -38,7 +34,6 @@ BEGIN {
     package Baz;
     use strict;
     use warnings;    
-    require NEXT; # load this as late as possible so we can catch the test skip
 
     use base 'Bar', 'Fuz';