NAME

Test::URI - Check Uniform Resource Identifiers

SYNOPSIS

use Test::More tests => 1;
use Test::URI;

uri_scheme_ok( $uri, 'gopher' );

DESCRIPTION

Check various parts of Uniform Resource Locators

FUNCTIONS

uri_scheme_ok( STRING|URI, SCHEME )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI uses the same SCHEME (i.e. protocol: http, ftp, ...). SCHEME is not case sensitive.

STRING can be an URI object.

uri_host_ok( STRING|URI, HOST )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI uses the same HOST. HOST is not case sensitive.

STRING can be an URI object.

uri_port_ok( STRING|URI, PORT )

Ok is the STRING is a valid URI, in any format that URI accepts, and the URI uses the same PORT.

STRING can be an URI object.

TO DO

* add methods: uri_canonical_ok, uri_query_string_ok, uri_path_ok, uri_fragment_ok, uri_same_ok

AUTHOR

brian d foy, <brian d foy>

COPYRIGHT

Copyright 2002 brian d foy, All rights reserved.

You can use this module under the same terms as Perl itself.