‪TYPO3CMS  10.4
TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest:

Public Member Functions

array[] getHttpHostReturnsSanitizedValueDataProvider ()
 
 getHttpHostReturnsSanitizedValue (array $serverParams, array $configuration, string $expected)
 
array[] isHttpsReturnSanitizedValueDataProvider ()
 
 isHttpsReturnSanitizedValue (array $serverParams, array $configuration, bool $expected)
 
 getRequestHostReturnsRequestHost ()
 
array[] getScriptNameReturnsExpectedValueDataProvider ()
 
 getScriptNameReturnsExpectedValue (array $serverParams, array $configuration, string $expected)
 
array[] getRequestUriReturnsExpectedValueDataProvider ()
 
 getRequestUriReturnsExpectedValue (array $serverParams, array $configuration, string $expected)
 
 getRequestUriFetchesFromConfiguredRequestUriVar ()
 
 getRequestUrlReturnsExpectedValue ()
 
 getRequestScriptReturnsExpectedValue ()
 
 getRequestDirReturnsExpectedValue ()
 
array[] isBehindReverseProxyReturnsExpectedValueDataProvider ()
 
 isBehindReverseProxyReturnsExpectedValue (array $serverParams, array $configuration, bool $expected)
 
array[] getRemoteAddressReturnsExpectedValueDataProvider ()
 
 getRemoteAddressReturnsExpectedValue (array $serverParams, array $configuration, string $expected)
 
 getRequestHostOnlyReturnsExpectedValue (array $serverParams, string $expected)
 
 getRequestPortReturnsExpectedValue (array $serverParams, int $expected)
 
 getScriptFilenameReturnsThirdConstructorArgument ()
 
 getDocumentRootReturnsExpectedPath ()
 
 getSiteUrlReturnsExpectedUrl ()
 
array[] getSitePathReturnsExpectedPathDataProvider ()
 
 getSitePathReturnsExpectedPath (array $serverParams, string $pathThisScript, string $pathSite, string $expected)
 
array[] getSiteScriptReturnsExpectedPathDataProvider ()
 
 getSiteScriptReturnsExpectedPath (array $serverParams, string $pathThisScript, string $pathSite, string $expected)
 
 getPathInfoReturnsExpectedValue ()
 
 getHttpRefererReturnsExpectedValue ()
 
 getHttpUserAgentReturnsExpectedValue ()
 
 getHttpAcceptEncodingReturnsExpectedValue ()
 
 getHttpAcceptLanguageReturnsExpectedValue ()
 
 getRemoteHostReturnsExpectedValue ()
 
 getQueryStringReturnsExpectedValue ()
 

Static Public Member Functions

static array getRequestHostOnlyReturnsExpectedValueDataProvider ()
 
static array getRequestPortOnlyReturnsExpectedValueDataProvider ()
 

Detailed Description

Test case

Definition at line 26 of file NormalizedParamsTest.php.

Member Function Documentation

◆ getDocumentRootReturnsExpectedPath()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getDocumentRootReturnsExpectedPath ( )
Test:

Definition at line 868 of file NormalizedParamsTest.php.

◆ getHttpAcceptEncodingReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getHttpAcceptEncodingReturnsExpectedValue ( )
Test:

Definition at line 1039 of file NormalizedParamsTest.php.

◆ getHttpAcceptLanguageReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getHttpAcceptLanguageReturnsExpectedValue ( )
Test:

Definition at line 1052 of file NormalizedParamsTest.php.

◆ getHttpHostReturnsSanitizedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getHttpHostReturnsSanitizedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)
Test:
‪@dataProvider getHttpHostReturnsSanitizedValueDataProvider
Parameters
array$serverParams
array$configuration
string$expected

Definition at line 133 of file NormalizedParamsTest.php.

◆ getHttpHostReturnsSanitizedValueDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getHttpHostReturnsSanitizedValueDataProvider ( )
Returns
‪array[]

Definition at line 31 of file NormalizedParamsTest.php.

◆ getHttpRefererReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getHttpRefererReturnsExpectedValue ( )
Test:

Definition at line 1013 of file NormalizedParamsTest.php.

◆ getHttpUserAgentReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getHttpUserAgentReturnsExpectedValue ( )
Test:

Definition at line 1026 of file NormalizedParamsTest.php.

◆ getPathInfoReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getPathInfoReturnsExpectedValue ( )
Test:

Definition at line 1000 of file NormalizedParamsTest.php.

◆ getQueryStringReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getQueryStringReturnsExpectedValue ( )
Test:

Definition at line 1078 of file NormalizedParamsTest.php.

◆ getRemoteAddressReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRemoteAddressReturnsExpectedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)
Test:
‪@dataProvider getRemoteAddressReturnsExpectedValueDataProvider
Parameters
array$serverParams
array$configuration
string$expected

Definition at line 707 of file NormalizedParamsTest.php.

◆ getRemoteAddressReturnsExpectedValueDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRemoteAddressReturnsExpectedValueDataProvider ( )
Returns
‪array[]

Definition at line 650 of file NormalizedParamsTest.php.

◆ getRemoteHostReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRemoteHostReturnsExpectedValue ( )
Test:

Definition at line 1065 of file NormalizedParamsTest.php.

◆ getRequestDirReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestDirReturnsExpectedValue ( )
Test:

Definition at line 577 of file NormalizedParamsTest.php.

◆ getRequestHostOnlyReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestHostOnlyReturnsExpectedValue ( array  $serverParams,
string  $expected 
)
Test:
‪@dataProvider getRequestHostOnlyReturnsExpectedValueDataProvider
Parameters
array$serverParams
string$expected

Definition at line 776 of file NormalizedParamsTest.php.

◆ getRequestHostOnlyReturnsExpectedValueDataProvider()

static array TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestHostOnlyReturnsExpectedValueDataProvider ( )
static
Returns
‪array

Definition at line 716 of file NormalizedParamsTest.php.

◆ getRequestHostReturnsRequestHost()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestHostReturnsRequestHost ( )
Test:

Definition at line 348 of file NormalizedParamsTest.php.

◆ getRequestPortOnlyReturnsExpectedValueDataProvider()

static array TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestPortOnlyReturnsExpectedValueDataProvider ( )
static
Returns
‪array

Definition at line 785 of file NormalizedParamsTest.php.

◆ getRequestPortReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestPortReturnsExpectedValue ( array  $serverParams,
int  $expected 
)
Test:
‪@dataProvider getRequestPortOnlyReturnsExpectedValueDataProvider
Parameters
array$serverParams
int$expected

Definition at line 845 of file NormalizedParamsTest.php.

◆ getRequestScriptReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestScriptReturnsExpectedValue ( )
Test:

Definition at line 563 of file NormalizedParamsTest.php.

◆ getRequestUriFetchesFromConfiguredRequestUriVar()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestUriFetchesFromConfiguredRequestUriVar ( )
Test:

Definition at line 532 of file NormalizedParamsTest.php.

References $GLOBALS.

◆ getRequestUriReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestUriReturnsExpectedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)
Test:
‪@dataProvider getRequestUriReturnsExpectedValueDataProvider
Parameters
array$serverParams
array$configuration
string$expected

Definition at line 523 of file NormalizedParamsTest.php.

◆ getRequestUriReturnsExpectedValueDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestUriReturnsExpectedValueDataProvider ( )
Returns
‪array[]

Definition at line 428 of file NormalizedParamsTest.php.

◆ getRequestUrlReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestUrlReturnsExpectedValue ( )
Test:

Definition at line 549 of file NormalizedParamsTest.php.

◆ getScriptFilenameReturnsThirdConstructorArgument()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getScriptFilenameReturnsThirdConstructorArgument ( )
Test:

Definition at line 854 of file NormalizedParamsTest.php.

◆ getScriptNameReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getScriptNameReturnsExpectedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)
Test:
‪@dataProvider getScriptNameReturnsExpectedValueDataProvider
Parameters
array$serverParams
array$configuration
string$expected

Definition at line 419 of file NormalizedParamsTest.php.

◆ getScriptNameReturnsExpectedValueDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getScriptNameReturnsExpectedValueDataProvider ( )
Returns
‪array[]

Definition at line 362 of file NormalizedParamsTest.php.

◆ getSitePathReturnsExpectedPath()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getSitePathReturnsExpectedPath ( array  $serverParams,
string  $pathThisScript,
string  $pathSite,
string  $expected 
)
Test:
‪@dataProvider getSitePathReturnsExpectedPathDataProvider
Parameters
array$serverParams
string$pathThisScript
string$pathSite
string$expected

Definition at line 938 of file NormalizedParamsTest.php.

◆ getSitePathReturnsExpectedPathDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getSitePathReturnsExpectedPathDataProvider ( )
Returns
‪array[]

Definition at line 900 of file NormalizedParamsTest.php.

◆ getSiteScriptReturnsExpectedPath()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getSiteScriptReturnsExpectedPath ( array  $serverParams,
string  $pathThisScript,
string  $pathSite,
string  $expected 
)
Test:
‪@dataProvider getSiteScriptReturnsExpectedPathDataProvider
Parameters
array$serverParams
string$pathThisScript
string$pathSite
string$expected

Definition at line 991 of file NormalizedParamsTest.php.

◆ getSiteScriptReturnsExpectedPathDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getSiteScriptReturnsExpectedPathDataProvider ( )
Returns
‪array[]

Definition at line 947 of file NormalizedParamsTest.php.

◆ getSiteUrlReturnsExpectedUrl()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getSiteUrlReturnsExpectedUrl ( )
Test:

Definition at line 884 of file NormalizedParamsTest.php.

◆ isBehindReverseProxyReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::isBehindReverseProxyReturnsExpectedValue ( array  $serverParams,
array  $configuration,
bool  $expected 
)
Test:
‪@dataProvider isBehindReverseProxyReturnsExpectedValueDataProvider
Parameters
array$serverParams
array$configuration
bool$expected

Definition at line 641 of file NormalizedParamsTest.php.

◆ isBehindReverseProxyReturnsExpectedValueDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::isBehindReverseProxyReturnsExpectedValueDataProvider ( )
Returns
‪array[]

Definition at line 591 of file NormalizedParamsTest.php.

◆ isHttpsReturnSanitizedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::isHttpsReturnSanitizedValue ( array  $serverParams,
array  $configuration,
bool  $expected 
)
Test:
‪@dataProvider isHttpsReturnSanitizedValueDataProvider
Parameters
array$serverParams
array$configuration
bool$expected

Definition at line 339 of file NormalizedParamsTest.php.

◆ isHttpsReturnSanitizedValueDataProvider()

array [] TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::isHttpsReturnSanitizedValueDataProvider ( )
Returns
‪array[]

Definition at line 142 of file NormalizedParamsTest.php.