-use strict;
-use Test::More;
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
-BEGIN {
- eval "use DBIx::Class::CDBICompat;";
- plan skip_all => 'Class::Trigger and DBIx::ContextualFetch required' if $@;
-
- eval "use DBD::SQLite";
- plan skip_all => 'needs DBD::SQLite for testing' if $@;
+use strict;
+use warnings;
- plan 'no_plan';
-}
+use Test::More;
-INIT {
- use lib 't/cdbi/testlib';
- require Film;
-}
+use lib 't/cdbi/testlib';
+INIT { require Film }
sub Film::get_test {
my $self = shift;
$film->wibble_thing(23);
is $film->wibble_thing, 23;
}
+
+done_testing;