use strict;
use warnings;
-use Test::More tests => 23;
-use Test::Exception;
-
+use Test::More;
+use Test::Fatal;
{
__PACKAGE__->meta->make_immutable;
}
-dies_ok {
+isnt( exception {
Fail::Bar->new(foo => 10)
-} '... this fails, because initializer returns a bad type';
+}, undef, '... this fails, because initializer returns a bad type' );
+done_testing;