6 use Test::More tests => 24;
14 sub new { bless {}, shift }
16 sub count { $count++ }
22 my $logger = Class::MOP::Class->create_anon_class(
25 if ($_[1] =~ /plugin method is deprecated/) {
29 die "Caught unexpected warning: " . $_[1];
33 PluginTestApp->log($logger);
35 use Catalyst::Test qw/PluginTestApp/;
37 ok( get("/compile_time_plugins"), "get ok" );
38 is( $warnings, 0, 'no warnings' );
39 # FIXME - Run time plugin support is insane, and should be removed
41 ok( get("/run_time_plugins"), "get ok" );
43 is( $warnings, 1, '1 warning' );
47 Catalyst::Plugin::Test::Errors
48 Catalyst::Plugin::Test::Headers
49 Catalyst::Plugin::Test::Inline
50 Catalyst::Plugin::Test::MangleDollarUnderScore
51 Catalyst::Plugin::Test::Plugin
52 TestApp::Plugin::AddDispatchTypes
53 TestApp::Plugin::FullyQualified
56 # Faux::Plugin is no longer reported
57 is_deeply [ TestApp->registered_plugins ], \@expected,
58 'registered_plugins() should only report the plugins for the current class';