use strict;
use warnings;
-use Test::More 'no_plan';
+use Test::More 0.88;
sub method {
my ($usepack, $name, $inpack, $sub) = @_;
use Devel::Declare 'method' => \&handle_method;
+BEGIN { $^H{foo} = 'bar' }
+
eval "method bar { 42 }";
+diag $@ if $@;
is( __PACKAGE__->bar, 42 );
-
+done_testing;