Perl x Open Food Facts Hackathon: Paris, France - May 24-25 Learn more

NAME

API::Plesk::Mock - Module for testing API::Plesk without sending real requests to Plesk API.

SYNOPSIS

my $api = API::Plesk::Mock->new(
username => 'user', # required
password => 'pass', # required
api_version => '1.6.3.1',
debug => 0,
timeout => 30,
);
$api->mock_response($some_response_xml);
$api->mock_error($some_error_text);

DESCRIPTION

Module for testing API::Plesk without sending real requests to Plesk API.

METHODS

mock_response($xml)

Sets response from Plesk API

mock_error($text)

Sets any error

AUTHOR

Ivan Sokolov <ivsokolov[at]cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2008 by Ivan Sokolov

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.