Institute a central "load this first in testing" package
[dbsrgits/DBIx-Class.git] / t / cdbi / 22-deflate_order.t
index cdb8c0d..a54eaf7 100644 (file)
@@ -1,14 +1,14 @@
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+use DBIx::Class::Optional::Dependencies -skip_all_without => qw( cdbicompat test_rdbms_mysql Time::Piece::MySQL>=0 );
+
 $| = 1;
+use warnings;
 use strict;
 
 use Test::More;
 
-eval "use DBIx::Class::CDBICompat; use Time::Piece::MySQL;";
-if ($@) {
-    plan (skip_all => "Time::Piece::MySQL, Class::Trigger and DBIx::ContextualFetch required: $@");
-}
-
 use lib 't/cdbi/testlib';
+
 use_ok ('Log');
 
 package main;