convert all uses of Test::Exception to Test::Fatal.
[gitmo/Package-DeprecationManager.git] / t / basic.t
index 90da5f9..0d8ecc0 100644 (file)
--- a/t/basic.t
+++ b/t/basic.t
@@ -1,18 +1,18 @@
 use strict;
 use warnings;
 
-use Test::Exception;
 use Test::More;
+use Test::Fatal;
 
 use Test::Requires {
     'Test::Output' => '0.16',
 };
 
 {
-    throws_ok {
+    like exception {
         eval 'package Foo; use Package::DeprecationManager;';
         die $@ if $@;
-    }
+    },
     qr/^\QYou must provide a hash reference -deprecations parameter when importing Package::DeprecationManager/,
         'must provide a set of deprecations when using Package::DeprecationManager';
 }