]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - t/22-magic.t
Port module loading in magic tests to VPIT::TestHelpers
[perl/modules/Lexical-Types.git] / t / 22-magic.t
index d0cae1b8e0f773fac1b0b4ecf3982e72c17c417d..cc8e497b30892328dd65509421cf6f0c6c9323b6 100644 (file)
@@ -5,9 +5,11 @@ use warnings;
 
 use Test::More;
 
+use lib 't/lib';
+use VPIT::TestHelpers;
+
 BEGIN {
- plan skip_all => 'Variable::Magic required to test magic'
-                                      unless eval "use Variable::Magic; 1";
+ load_or_skip('Variable::Magic', undef, [ ], 'required to test magic');
 }
 
 {
@@ -29,7 +31,6 @@ BEGIN {
 
 BEGIN {
  plan tests => 2 * 8;
- defined and diag "Using Variable::Magic $_" for $Variable::Magic::VERSION;
 }
 
 use Lexical::Types as => 'Lexical::Types::Test';