Merged 5.49_01 (r1339) from refactored branch to trunk
[catagits/Catalyst-Runtime.git] / t / live / lib / Catalyst / Plugin / Test / Plugin.pm
diff --git a/t/live/lib/Catalyst/Plugin/Test/Plugin.pm b/t/live/lib/Catalyst/Plugin/Test/Plugin.pm
new file mode 100644 (file)
index 0000000..0fdf99d
--- /dev/null
@@ -0,0 +1,25 @@
+package Catalyst::Plugin::Test::Plugin;
+
+use strict;
+
+use base 'Class::Data::Inheritable';
+
+ __PACKAGE__->mk_classdata('ran_setup');
+
+sub setup {
+   my $c = shift;
+   $c->ran_setup('1');
+}
+
+sub  prepare {
+
+    my $class = shift;
+
+    my $c = $class->NEXT::prepare(@_);
+    $c->response->header( 'X-Catalyst-Plugin-Setup' => $c->ran_setup );
+
+    return $c;
+
+}
+
+1;