X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=trunk%2Ft%2Flib%2FTestApp%2FController%2FDump.pm;fp=trunk%2Ft%2Flib%2FTestApp%2FController%2FDump.pm;h=69431b36ef3df3a7798211a770c0eac2cf484208;hb=ceae39c522c2145a453188867dd581062795ecee;hp=0000000000000000000000000000000000000000;hpb=f436bc1bece2bcc2a04138068e5c22e70d9d6d35;p=catagits%2FCatalyst-Runtime.git diff --git a/trunk/t/lib/TestApp/Controller/Dump.pm b/trunk/t/lib/TestApp/Controller/Dump.pm new file mode 100644 index 0000000..69431b3 --- /dev/null +++ b/trunk/t/lib/TestApp/Controller/Dump.pm @@ -0,0 +1,33 @@ +package TestApp::Controller::Dump; + +use strict; +use base 'Catalyst::Controller'; + +sub default : Action { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump'); +} + +sub env : Action Relative { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Env'); +} + +sub request : Action Relative { + my ( $self, $c ) = @_; + $c->req->params(undef); # Should be a no-op, and be ignored. + # Back compat test for 5.7 + $c->forward('TestApp::View::Dump::Request'); +} + +sub response : Action Relative { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Response'); +} + +sub body : Action Relative { + my ( $self, $c ) = @_; + $c->forward('TestApp::View::Dump::Body'); +} + +1;