Remove use of NEXT from the test suite, except for one (commented) case to test back...
[catagits/Catalyst-Runtime.git] / t / lib / Catalyst / Plugin / Test / Plugin.pm
CommitLineData
fbcc39ad 1package Catalyst::Plugin::Test::Plugin;
2
3use strict;
4
01ba879f 5use base qw/Catalyst::Base Class::Data::Inheritable/;
fbcc39ad 6
7 __PACKAGE__->mk_classdata('ran_setup');
8
9sub setup {
10 my $c = shift;
11 $c->ran_setup('1');
12}
13
14sub prepare {
15
16 my $class = shift;
17
dbb2d5cd 18# Note: This use of NEXT is deliberately left here to ensure back
19# compat, as NEXT always used to be loaded, but is now replaced
20# by Class::C3::Adopt::NEXT.
fbcc39ad 21 my $c = $class->NEXT::prepare(@_);
22 $c->response->header( 'X-Catalyst-Plugin-Setup' => $c->ran_setup );
23
24 return $c;
25
26}
27
01ba879f 28sub end : Private {
29 my ($self,$c) = @_;
30}
31
fbcc39ad 321;