Basic tests for fcgi script
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Test.pm
CommitLineData
0ba6e8aa 1package Catalyst::Script::Test;
accb0640 2use Moose;
d9a32f71 3use namespace::autoclean;
451b2a44 4
d3082fac 5with 'Catalyst::ScriptRole';
451b2a44 6
7sub run {
8 my $self = shift;
9
10 Class::MOP::load_class("Catalyst::Test");
11 Catalyst::Test->import($self->app);
57dc50b0 12
451b2a44 13 print request($ARGV[1])->content . "\n";
57dc50b0 14
451b2a44 15}
16
73e4f0f1 17
d6e8e664 18__PACKAGE__->meta->make_immutable;
d3082fac 19
20=head1 NAME
21
22Catalyst::Script::Test - Test Catalyst application on the command line
23
24=head1 SYNOPSIS
25
26See L<Catalyst>.
27
28=head1 DESCRIPTION
29
30FIXME
31
32=head1 AUTHORS
33
34Catalyst Contributors, see Catalyst.pm
35
36=head1 COPYRIGHT
37
38This library is free software. You can redistribute it and/or modify it under
39the same terms as Perl itself.
40
41=cut