Eden Cardim > CatalystX-Test-MockContext-0.000001 > CatalystX::Test::MockContext

Download:
CatalystX-Test-MockContext-0.000001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

CatalystX::Test::MockContext - Conveniently create $c objects for testing

VERSION ^

version 0.000001

SYNOPSIS ^

  use HTTP::Request::Common;
  use CatalystX::Test::MockContext;

  my $m = mock_context('MyApp');
  my $c = $m->(GET '/');

METHODS ^

my $sub = mock_context('MyApp');

This method returns a closure that takes an HTTP::Request object and returns a Catalyst context object for that request.

AUTHOR ^

Eden Cardim <edencardim@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Eden Cardim.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: