VuFind API Documentation

UserIpReaderTest extends TestCase
in package

UserIpReader Test Class

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

testFilteredSingle()  : void
Test that a single value is extracted correctly after a filter is applied.
testMultipleHeaders()  : void
Test X-Real-IP; it should take priority over all other settings when forwarding is allowed.
testMultipleHeadersWithFilter()  : void
Test that filters are applied correctly.
testXForwardedForMultiValued()  : void
Test X-Forwarded-For (multi-value); the leftmost IP should take priority over REMOTE_ADDR when forwarding is allowed.
testXForwardedForWithoutHeaders()  : void
Test what happens when only REMOTE_ADDR is provided.
runFilterTests()  : void
Support method for testMultipleHeadersWithFilter().

Methods

testFilteredSingle()

Test that a single value is extracted correctly after a filter is applied.

public testFilteredSingle() : void
Return values
void

testMultipleHeaders()

Test X-Real-IP; it should take priority over all other settings when forwarding is allowed.

public testMultipleHeaders() : void
Return values
void

testMultipleHeadersWithFilter()

Test that filters are applied correctly.

public testMultipleHeadersWithFilter() : void
Return values
void

testXForwardedForMultiValued()

Test X-Forwarded-For (multi-value); the leftmost IP should take priority over REMOTE_ADDR when forwarding is allowed.

public testXForwardedForMultiValued() : void
Return values
void

testXForwardedForWithoutHeaders()

Test what happens when only REMOTE_ADDR is provided.

public testXForwardedForWithoutHeaders() : void
Return values
void

runFilterTests()

Support method for testMultipleHeadersWithFilter().

protected runFilterTests(Parameters $params, string $rules) : void
Parameters
$params : Parameters

Parameters

$rules : string

Rules to apply to UserIpReader

Return values
void

Search results