X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fdeprecated.t;h=d9f90e0c5eeaa4cc694e739123f7260aa755466a;hb=30fe793be0d7595dcd1b888ef281c03864f6cd1d;hp=cfb5adf845c8674a6e8bc7b3e1aef37a03d194aa;hpb=a13118d38dfb62e5110605e4d4f6885dd3fc959b;p=catagits%2FCatalyst-Runtime.git diff --git a/t/deprecated.t b/t/deprecated.t index cfb5adf..d9f90e0 100644 --- a/t/deprecated.t +++ b/t/deprecated.t @@ -9,13 +9,18 @@ use Test::More tests => 4; my $warnings; BEGIN { # Do this at compile time in case we generate a warning when use # DeprecatedTestApp - $SIG{__WARN__} = sub { $warnings++ if $_[0] =~ /trying to use NEXT/ }; + $SIG{__WARN__} = sub { + $warnings++ if $_[0] =~ /uses NEXT, which is deprecated/; + $warnings++ if $_[0] =~ /trying to use NEXT, which is deprecated/; + }; } use Catalyst; # Cause catalyst to be used so I can fiddle with the logging. my $mvc_warnings; BEGIN { my $logger = Class::MOP::Class->create_anon_class( methods => { + debug => sub {0}, + info => sub {0}, warn => sub { if ($_[1] =~ /switch your class names/) { $mvc_warnings++;