use warnings;
use Test::More;
-use Test::Fatal;
+use Test::Exception;
BEGIN {
use_ok('Moose::Util::TypeConstraints');
subtype 'MySubType' => as 'Int' => where { 1 };
}
-like exception {
+throws_ok {
package Some::Other::Class;
use Moose::Util::TypeConstraints;
subtype 'MySubType' => as 'Int' => where { 1 };
-}, qr/cannot be created again/, 'Trying to create same type twice throws';
+} qr/cannot be created again/, 'Trying to create same type twice throws';
done_testing;