PHP Class SimpleSAML\Test\Utils\HTTPTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: simplesamlphp/simplesamlphp

Public Methods

Method Description
testAddURLParameters ( ) Test SimpleSAML\Utils\HTTP::addURLParameters().
testAddURLParametersInvalidParameters ( ) Test SimpleSAML\Utils\HTTP::addURLParameters().
testAddURLParametersInvalidURL ( ) Test SimpleSAML\Utils\HTTP::addURLParameters().
testCheckURLAllowedWithRegex ( ) Test SimpleSAML\Utils\HTTP::checkURLAllowed(), with regex.
testCheckURLAllowedWithRegexWithoutDelimiters ( ) Test SimpleSAML\Utils\HTTP::checkURLAllowed(), with the regex as a subdomain of an evil domain.
testCheckURLAllowedWithoutRegex ( ) Test SimpleSAML\Utils\HTTP::checkURLAllowed(), without regex.
testGetSelfHost ( ) Test SimpleSAML\Utils\HTTP::getSelfHost() with and without custom port.
testGetSelfHostWithPort ( ) Test SimpleSAML\Utils\HTTP::getSelfHostWithPort(), with and without custom port.
testGetSelfURLMethods ( ) Test SimpleSAML\Utils\HTTP::getSelfURL().
testGuessBasePath ( ) Test SimpleSAML\Utils\HTTP::guessBasePath().

Private Methods

Method Description
setupEnvFromURL ( string $url ) Set up the environment ($_SERVER) populating the typical variables from a given URL.

Method Details

testAddURLParameters() public method

Test SimpleSAML\Utils\HTTP::addURLParameters().

testAddURLParametersInvalidParameters() public method

Test SimpleSAML\Utils\HTTP::addURLParameters().

testAddURLParametersInvalidURL() public method

Test SimpleSAML\Utils\HTTP::addURLParameters().

testCheckURLAllowedWithRegex() public method

Test SimpleSAML\Utils\HTTP::checkURLAllowed(), with regex.

testCheckURLAllowedWithRegexWithoutDelimiters() public method

Test SimpleSAML\Utils\HTTP::checkURLAllowed(), with the regex as a subdomain of an evil domain.

testCheckURLAllowedWithoutRegex() public method

Test SimpleSAML\Utils\HTTP::checkURLAllowed(), without regex.

testGetSelfHost() public method

Test SimpleSAML\Utils\HTTP::getSelfHost() with and without custom port.
public testGetSelfHost ( )

testGetSelfHostWithPort() public method

Test SimpleSAML\Utils\HTTP::getSelfHostWithPort(), with and without custom port.

testGetSelfURLMethods() public method

Test SimpleSAML\Utils\HTTP::getSelfURL().

testGuessBasePath() public method

Test SimpleSAML\Utils\HTTP::guessBasePath().
public testGuessBasePath ( )