require Test::Harness;
}
-if( $Test::Harness::VERSION < 1.20 ) {
- plan skip_all => 'Need Test::Harness 1.20 or up';
+# This feature requires a fairly new version of Test::Harness
+if( $Test::Harness::VERSION < 2.03 ) {
+ plan tests => 1;
+ diag "Need Test::Harness 2.03 or up. You have $Test::Harness::VERSION.";
+ fail 'Need Test::Harness 2.03 or up';
+ exit;
}
use strict;
use Test::Builder;
plan 'no_plan';
-is(Test::Builder->has_plan, 'no_plan', 'has no_plan');
+is(Test::Builder->new->has_plan, 'no_plan', 'has no_plan');