NAME
Pinto::Server::Tester - A class for testing a Pinto server
VERSION
version 0.048
ATTRIBUTES
server_port( $integer )
Sets the port that the server will listen on. If not specified during construction, defaults to a randomly generated but open port.
server_host( $hostname )
Sets the hostname that the server will bind to. Defaults to localhost
.
server_pid
Returns the process id for the server (if it has been started). Read-only.
server_url
Returns the full URL that the server will listen on. Read-only.
pintod_exe
Sets the path to the pintod
executable. If not specified, your PATH
will be searched. An exception is thrown if pintod
cannot be found.
METHODS
start_server()
Starts the pintod server. Emits a warning if the server is already started.
stop_server()
Stops the pintod server. Emits a warning if the server is not currently running.
server_running_ok()
Asserts that the server is running.
server_not_running_ok
Asserts that the server is not running.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Imaginative Software Systems.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.