The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Pinto::Server::Tester - A class for testing a Pinto server

VERSION

version 0.079_04

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, we will search in ./blib/script, ./bin, PINTO_HOME, and finally your PATH 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.

CONTRIBUTORS

  • Cory G Watson <gphat@onemogin.com>

  • Jakob Voss <jakob@nichtich.de>

  • Jeff <jeff@callahan.local>

  • Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

  • Jeffrey Thalhammer <jeff@imaginative-software.com>

  • Karen Etheridge <ether@cpan.org>

  • Michael G. Schwern <schwern@pobox.com>

  • Steffen Schwigon <ss5@renormalist.net>

  • Wolfgang Kinkeldei <wolfgang@kinkeldei.de>

  • Yanick Champoux <yanick@babyl.dyndns.org>

AUTHOR

Jeffrey Ryan Thalhammer <jeff@stratopan.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Jeffrey Ryan Thalhammer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.