use strict;
-use warnings;
+use warnings;
-use Test::More qw(no_plan);
+use Test::More;
use lib qw(t/lib);
use DBICTest;
})->single;
is($row->cdid, $it->first->cdid, 'page with offset');
+
+done_testing;
plan skip_all => "DateTime required" unless eval { require DateTime };
eval "use DateTime::Format::Strptime";
plan skip_all => 'DateTime::Format::Strptime required' if $@;
-plan 'no_plan';
use Test::Exception;
my $schema = DBICTest->init_schema();
is($artist->name, undef);
}
-
-1;
+done_testing;
BEGIN {
eval "use DBIx::Class::CDBICompat;";
- plan $@ ? (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@")
- : ('no_plan');
+ plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" if $@;
}
use lib 't/cdbi/testlib';
isa_ok $foo->{tdate}, 'Date::Simple';
is $foo->{tdate}->year, 1949;
-}
\ No newline at end of file
+}
+
+done_testing;
BEGIN {
eval "use DBIx::Class::CDBICompat;";
- plan $@ ? (skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@")
- : ('no_plan');
+ plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" if $@;
}
Thing->columns(Essential => qw(foo bar baz));
is_deeply [Stuff->columns("Essential")], [];
-1;
+done_testing;
eval "use DBD::SQLite";
plan skip_all => 'needs DBD::SQLite for testing' if $@;
-
- plan 'no_plan';
}
INIT {
$film->wibble_thing(23);
is $film->wibble_thing, 23;
}
+
+done_testing;
use strict;
use warnings;
-use Test::More qw(no_plan);
+use Test::More;
use Test::Exception;
use lib qw(t/lib);
use DBICTest;
ok($single->cdid, 'Got cdid');
};
+
+done_testing;
use lib qw(t/lib);
use DBICTest;
-plan 'no_plan';
-
my $schema = DBICTest->init_schema();
my $query_stats;
}
-1;
+done_testing;