| Apache2::ASP::Test::Base - Base class for Apache2::ASP unit tests |
Apache2::ASP::Test::Base - Base class for Apache2::ASP unit tests
#!perl -w use strict; use warnings 'all'; use base 'Apache2::ASP::Test::Base'; use Test::More 'no_plan'; # Initialize our object: my $s = __PACKAGE__->SUPER::new(); my $res = $s->ua->get("/hello.asp"); is( $res->is_success => 1, "Got /hello.asp successfully." ); like( $res->content, qr/Hello, World\!/, "The content of /hello.asp looks good." );
Apache2::ASP::Test::Base brings simplicity to writing unit tests for your the Apache2::ASP manpage web applications.
Returns a new Apache2::ASP::Test::Base object.
Returns the current active instance of the Apache2::ASP::Config manpage in effect.
Returns the current the Apache2::ASP::Base manpage object.
Returns the current the Apache2::ASP::Test::UserAgent manpage object.
Returns the current the Apache2::ASP::SessionStateManager manpage object (or an instance of your specified subclass of it).
If $config.application_root/etc/test_fixtures.yaml exists and can be parsed by YAML,
data will return the current the Apache2::ASP::Test::Fixtures manpage object.
If $config.application_root/etc/test_fixtures.yaml exists and can be parsed by YAML,
data will return the current the Data::Properties::YAML manpage object.
The tests under the t/ folder in this distribution, which make extensive use of Apache2::ASP::Test::Base.
It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html to submit bug reports.
Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.
John Drago mailto:jdrago_999@yahoo.com
Copyright 2007 John Drago, All rights reserved.
This software is free software. It may be used and distributed under the same terms as Perl itself.
| Apache2::ASP::Test::Base - Base class for Apache2::ASP unit tests |