GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::WWW::MECHANIZE::CGI (3)

.ds Aq ’

NAME

Test::WWW::Mechanize::CGI - Test CGI applications with Test::WWW::Mechanize

CONTENTS

SYNOPSIS



    use Test::More tests => 3;

    use CGI;
    use Test::WWW::Mechanize::CGI;

    my $mech = Test::WWW::Mechanize::CGI->new;
    $mech->cgi( sub {

        my $q = CGI->new;

        print $q->header,
              $q->start_html(Hello World),
              $q->h1(Hello World),
              $q->end_html;
    });

    $mech->get_ok(http://localhost/);
    $mech->title_is(Hello World);
    $mech->content_contains(Hello World);



DESCRIPTION

Provides a convenient way of testing CGI applications without a external daemon.

SEE ALSO

WWW::Mechanize::CGI
WWW::Mechanize
LWP::UserAgent
HTTP::Request::AsCGI

AUTHOR

Christian Hansen, ch@ngmedia.com

LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::WWW::MECHANIZE::CGI (3) 2005-10-30

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.