use warnings;
use Test::More;
-use Test::Exception;
+use Test::Fatal;
BEGIN { $^P |= 0x210 } # PERLDBf_SUBLINE
ok(!defined($Foo::{funk}), '... the &funk slot has not been created yet');
-lives_ok {
+ok(!exception {
$foo_stash->add_package_symbol('&funk' => sub { "Foo::funk", __LINE__ });
-} '... created &Foo::funk successfully';
+}, '... created &Foo::funk successfully');
ok(defined($Foo::{funk}), '... the &funk slot was created successfully');