use Test::More tests => 2; no warnings; BEGIN { use_ok( 'Backend::A' ); } BEGIN { use_ok( 'Backend::B' ); } #### use Test::More tests => 2; no warnings qw( redefine ); BEGIN { use_ok( 'Backend::A' ); } BEGIN { use_ok( 'Backend::B' ); } #### use Test::More tests => 2; BEGIN { use_ok( 'Backend::A' ); } BEGIN { no warnings qw( redefine ); use_ok( 'Backend::B' ); } #### # having given up on testing temporarily: no warnings qw( redefine ); require Backend::A; require Backend::B;