X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_plugin.t;h=11cef846aaf84617c3ca456c3b4ac7a225b260e0;hb=5ab21903f27011f38ec3e32ef2e649065e7adc1e;hp=03d16f62f932c6bf000aaa1de3a4b1168532dea5;hpb=5d50f369bffa3625ca983b72fc8bc013c8a1e802;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_plugin.t b/t/aggregate/unit_core_plugin.t index 03d16f6..11cef84 100644 --- a/t/aggregate/unit_core_plugin.t +++ b/t/aggregate/unit_core_plugin.t @@ -11,9 +11,8 @@ use lib 't/lib'; package Faux::Plugin; - sub new { bless {}, shift } - my $count = 1; - sub count { $count++ } + sub new { bless { count => 1 }, shift } + sub count { shift->{count}++ } } my $warnings = 0;