CatalystX::Test::MockContext - Conveniently create $c objects for testing
version 0.000003
use HTTP::Request::Common; use CatalystX::Test::MockContext; my $m = mock_context('MyApp'); my $c = $m->(GET '/');
This method returns a closure that takes an HTTP::Request object and returns a Catalyst context object for that request.
Eden Cardim <edencardim@gmail.com>
This software is copyright (c) 2017 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.
To install CatalystX::Test::MockContext, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Test::MockContext
CPAN shell
perl -MCPAN -e shell install CatalystX::Test::MockContext
For more information on module installation, please visit the detailed CPAN module installation guide.