-
-
11 Dec 2017 09:49:17 UTC
- Distribution: CatalystX-Test-MockContext
- Module version: 0.000003
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (0)
- Testers (548 / 0 / 0)
- Kwalitee
Bus factor: 2- 97.62% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (11.07KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
NAME
CatalystX::Test::MockContext - Conveniently create $c objects for testing
VERSION
version 0.000003
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) 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.
Module Install Instructions
To install CatalystX::Test::MockContext, copy and paste the appropriate command in to your terminal.
cpanm CatalystX::Test::MockContext
perl -MCPAN -e shell install CatalystX::Test::MockContext
For more information on module installation, please visit the detailed CPAN module installation guide.