use strict;
use warnings;
-use Test::More tests => 7;
+require q(./test.pl); plan(tests => 7);
{
package BaseTest;
}
}
-use Test::More tests => 1;
+require q(./test.pl); plan(tests => 1);
=pod
}
}
-use Test::More;
+require './test.pl';
{
package MCTest::Base;
sub { *XYZ = sub { $_[1]+8 }; ${MCTest::Base::}{foo} = \&XYZ; is(MCTest::Derived->foo(0), 8); },
);
-plan tests => scalar(@testsubs) + 1;
+plan(tests => scalar(@testsubs) + 1);
is(MCTest::Derived->foo(0), 1);
$_->() for (@testsubs);
use strict;
use warnings;
-use Test::More tests => 11;
+require q(./test.pl); plan(tests => 11);
{
# test it working with with Sub::Name
SKIP: {
eval 'use Sub::Name';
- skip "Sub::Name is required for this test", 3 if $@;
+ skip("Sub::Name is required for this test", 3) if $@;
my $m = sub { (shift)->next::method() };
Sub::Name::subname('Bar::bar', $m);
use strict;
use warnings;
-use Test::More tests => 2;
+require q(./test.pl); plan(tests => 2);
=pod
use strict;
use warnings;
-use Test::More tests => 1;
+require q(./test.pl); plan(tests => 1);
=pod
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;
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';
}
}
-use Test::More tests => 7;
+require q(./test.pl); plan(tests => 7);
{
package BaseTest;
}
}
-use Test::More tests => 7;
+require q(./test.pl); plan(tests => 7);
{
package BaseTest;
}
}
-use Test::More;
+require './test.pl';
use mro;
-plan skip_all => "Your system has no SIGALRM" if !exists $SIG{ALRM};
-plan tests => 8;
+plan(skip_all => "Your system has no SIGALRM") if !exists $SIG{ALRM};
+plan(tests => 8);
=pod
}
}
-use Test::More;
+require './test.pl';
use mro;
-plan skip_all => "Your system has no SIGALRM" if !exists $SIG{ALRM};
-plan tests => 8;
+plan(skip_all => "Your system has no SIGALRM") if !exists $SIG{ALRM};
+plan(tests => 8);
=pod