ba03c0da2cb5df15ad3d1b325cd33d80c6752fad
[catagits/Catalyst-Runtime.git] / t / lib / TestApp.pm
1 package TestApp;
2
3 use strict;
4 use Catalyst qw/
5     Test::MangleDollarUnderScore
6     Test::Errors 
7     Test::Headers 
8     Test::Plugin
9     Test::Inline
10     +TestApp::Plugin::FullyQualified
11     +TestApp::Plugin::AddDispatchTypes
12     +TestApp::Role
13 /;
14 use Catalyst::Utils;
15 use TestApp::Context;
16
17 use Moose;
18 use namespace::autoclean;
19
20 our $VERSION = '0.01';
21
22 TestApp->config(
23     name => 'TestApp', root => '/some/dir',
24     disable_component_resolution_regex_fallback => 1,
25 );
26
27 TestApp->context_class( 'TestApp::Context' );
28 TestApp->setup;
29
30 {
31     no warnings 'redefine';
32     sub Catalyst::Log::error { }
33 }
34
35 # Make sure we can load Inline plugins. 
36
37 package Catalyst::Plugin::Test::Inline;
38
39 use strict;
40
41 use base qw/Class::Data::Inheritable/;
42
43 1;