Upgrade to Test::Simple 0.60
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / has_plan2.t
CommitLineData
60ffb308 1#!/usr/bin/perl -w
2
3BEGIN {
4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = '../lib';
7 }
8}
9
10use Test::More;
11
12BEGIN {
13 if( !$ENV{HARNESS_ACTIVE} && $ENV{PERL_CORE} ) {
14 plan skip_all => "Won't work with t/TEST";
15 }
16}
17
18BEGIN {
19 require Test::Harness;
20}
21
30e302f8 22# This feature requires a fairly new version of Test::Harness
23if( $Test::Harness::VERSION < 2.03 ) {
24 plan tests => 1;
25 diag "Need Test::Harness 2.03 or up. You have $Test::Harness::VERSION.";
26 fail 'Need Test::Harness 2.03 or up';
27 exit;
60ffb308 28}
29
30use strict;
31use Test::Builder;
32
33plan 'no_plan';
5143c659 34is(Test::Builder->new->has_plan, 'no_plan', 'has no_plan');