X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Feval.t;h=c9f12b8848e924d360facec421bb6b2c6dbadc44;hb=38f64b4875e1a25c6b22a1a90055275fcbcdecd2;hp=2970c9318a14aba5a4a143b823a312e812860c76;hpb=8f73feac5bf38ce5e1b8be9d39465c0b5b00eff7;p=p5sagit%2FDevel-Declare.git diff --git a/t/eval.t b/t/eval.t index 2970c93..c9f12b8 100644 --- a/t/eval.t +++ b/t/eval.t @@ -1,6 +1,6 @@ use strict; use warnings; -use Test::More 'no_plan'; +use Test::More 0.88; sub method { my ($usepack, $name, $inpack, $sub) = @_; @@ -15,8 +15,11 @@ sub handle_method { use Devel::Declare 'method' => \&handle_method; +BEGIN { $^H{foo} = 'bar' } + eval "method bar { 42 }"; +diag $@ if $@; is( __PACKAGE__->bar, 42 ); - +done_testing;