X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Funit_core_plugin.t;h=16a5e24983adcd0bc9835d038be08ec87f894d0a;hp=03d16f62f932c6bf000aaa1de3a4b1168532dea5;hb=62b6b631cf9141ffd9ae02e4b87c182b080b335a;hpb=5d50f369bffa3625ca983b72fc8bc013c8a1e802 diff --git a/t/aggregate/unit_core_plugin.t b/t/aggregate/unit_core_plugin.t index 03d16f6..16a5e24 100644 --- a/t/aggregate/unit_core_plugin.t +++ b/t/aggregate/unit_core_plugin.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 24; +use Test::More; use lib 't/lib'; @@ -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; @@ -62,3 +61,4 @@ my @expected = qw( is_deeply [ TestApp->registered_plugins ], \@expected, 'registered_plugins() should only report the plugins for the current class'; +done_testing;