use strict;
use Test::More;
-use Test::Fatal;
+use Test::Exception;
use Class::MOP;
while (my ($name, $meta_method) = each %methods) {
is $meta_method->fully_qualified_name, "Derived::${name}";
- like exception { $meta_method->execute }, qr/Undefined subroutine .* called at/;
+ throws_ok { $meta_method->execute } qr/Undefined subroutine .* called at/;
}
{
while (my ($name, $meta_method) = each %methods) {
is $meta_method->fully_qualified_name, "Derived::${name}";
- ok ! exception { $meta_method->execute },;
+ lives_ok { $meta_method->execute };
}
done_testing;