Institute a central "load this first in testing" package
[dbsrgits/DBIx-Class-Historic.git] / t / cdbi / testlib / DBIC / Test / SQLite.pm
index e17c408..72aa0c1 100644 (file)
@@ -1,6 +1,9 @@
 package # hide from PAUSE
     DBIC::Test::SQLite;
 
+use strict;
+use warnings;
+
 =head1 NAME
 
 DBIx::Class::Test::SQLite - Base class for running Class::DBI tests against DBIx::Class compat layer, shamelessly ripped from Class::DBI::Test::SQLite
@@ -31,24 +34,11 @@ table, and tie it to the class.
 
 =cut
 
-use strict;
-use warnings;
-
-use Test::More;
-
 # adding implicit search criteria to the iterator will alter the test
 # mechanics - leave everything as-is instead, and hope SQLite won't
 # change too much
 BEGIN { $ENV{DBIC_SHUFFLE_UNORDERED_RESULTSETS} = 0 }
 
-BEGIN {
-  require DBIx::Class::Optional::Dependencies;
-  DBIx::Class::Optional::Dependencies->req_ok_for($_)
-    or plan skip_all => DBIx::Class::Optional::Dependencies->req_missing_for($_) . ' required for this test'
-      for qw(cdbicompat test_cdbicompat);
-}
-
-use lib 't/lib';
 use DBICTest;
 
 use base qw/DBIx::Class/;