4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
13 use Test::More tests => 7;
15 my $tb = Test::Builder->create;
18 ok !eval { $tb->plan(tests => undef) };
19 is($@, "Got an undefined number of tests at $0 line 20.\n");
22 ok !eval { $tb->plan(tests => 0) };
23 is($@, "You said to run 0 tests at $0 line 24.\n");
27 local $SIG{__WARN__} = sub { $warning .= join '', @_ };
30 ok $tb->plan(no_plan => 1);
31 is( $warning, "no_plan takes no arguments at $0 line 31.\n" );
32 is $tb->has_plan, 'no_plan';