Patch from the mailing list to clarify view warning
[catagits/Catalyst-Runtime.git] / t / lib / TestAppViewWarnings.pm
CommitLineData
4d723d12 1use strict;
2use warnings;
3
4package TestAppViewWarnings;
5
6use Catalyst;
7
8our @log_messages;
9
10__PACKAGE__->config( name => 'TestAppWarnings', root => '/some/dir', default_view => "DoesNotExist" );
11
12__PACKAGE__->log(TestAppViewWarnings::Log->new);
13
14__PACKAGE__->setup;
15
16package TestAppViewWarnings::Log;
17
18use base qw/Catalyst::Log/;
19sub warn { push(@TestAppViewWarnings::log_messages, @_[1..$#_]); }
20
211;
22