-my @only_in_test_more = qw<
- use_ok
- require_ok
- can_ok
- isa_ok
- new_ok
- subtest
- explain
- todo_skip
->;
-
-for (@only_in_test_more) {
- my $more_variant = get_subroutine($more_stash, $_);
-
- SKIP: {
- Test::More::skip("$_ is not implemented in this version of Test::More" => 2)
- unless defined $more_variant;
-
- Test::More::ok(!exists $leaner_stash->{$_},
- "$_ was not imported into Test::Leaner");
- Test::More::ok(!exists $this_stash->{$_},
- "$_ was not imported into main");
+SKIP:
+{
+ Test::More::skip('Test::More::plan exports stuff on Test::More <= 0.51'
+ => 2 * 8) unless has_test_more_version('0.51');
+
+ my @only_in_test_more = qw<
+ use_ok
+ require_ok
+ can_ok
+ isa_ok
+ new_ok
+ subtest
+ explain
+ todo_skip
+ >;
+
+ for (@only_in_test_more) {
+ my $more_variant = get_subroutine($more_stash, $_);
+
+ SKIP: {
+ Test::More::skip("$_ is not implemented in this version of Test::More" => 2)
+ unless defined $more_variant;
+
+ Test::More::ok(!exists $leaner_stash->{$_},
+ "$_ was not imported into Test::Leaner");
+ Test::More::ok(!exists $this_stash->{$_},
+ "$_ was not imported into main");
+ }