NAME
Test::Apache2::Common - Apache2::API Testing Common Class
SYNOPSIS
package Test::Apache2::API;
use parent qw( Test::Apache2::Common );
# etc.
VERSION
v0.1.0
DESCRIPTION
This is a package to inherit from for the test modules.
METHODS
failure
Calls "reply" with Apache2::Const::HTTP_EXPECTATION_FAILED and failed and returns its value, which is the HTTP code.
is
Provided with a resulting value and an expected value and this returns ok if both match, or a string explaining the failure to match.
ok
Provided with a boolean value, and this returns the value returned by "success" or "failure" otherwise.
reply
Provided with a response http code and some text data, and this will return the response to the http client.
success
Calls "reply" with Apache2::Const::HTTP_OK and ok and returns its value, which is the http code.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Apache2::API, Apache2::API::Request, Apache2::API::Response, Apache::Test, Apache::TestUtil, Apache::TestRequest
COPYRIGHT & LICENSE
Copyright (c) 2019-2023 DEGUEST Pte. Ltd.
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself.