X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestAppViewWarnings.pm;fp=t%2Flib%2FTestAppViewWarnings.pm;h=3a9102cc66104d380ee6fcd542ce353fdb988055;hp=0000000000000000000000000000000000000000;hb=4d723d120281581f8b040252e1b6324e2509b65b;hpb=b7574be10423241f54ba7244cc9e84708460e997 diff --git a/t/lib/TestAppViewWarnings.pm b/t/lib/TestAppViewWarnings.pm new file mode 100644 index 0000000..3a9102c --- /dev/null +++ b/t/lib/TestAppViewWarnings.pm @@ -0,0 +1,22 @@ +use strict; +use warnings; + +package TestAppViewWarnings; + +use Catalyst; + +our @log_messages; + +__PACKAGE__->config( name => 'TestAppWarnings', root => '/some/dir', default_view => "DoesNotExist" ); + +__PACKAGE__->log(TestAppViewWarnings::Log->new); + +__PACKAGE__->setup; + +package TestAppViewWarnings::Log; + +use base qw/Catalyst::Log/; +sub warn { push(@TestAppViewWarnings::log_messages, @_[1..$#_]); } + +1; +