‪TYPO3CMS  9.5
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 24 of file NormalizedParamsTest.php.

Member Function Documentation

◆ getDocumentRootReturnsExpectedPath()

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

Definition at line 904 of file NormalizedParamsTest.php.

◆ getHttpAcceptEncodingReturnsExpectedValue()

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

Definition at line 1074 of file NormalizedParamsTest.php.

◆ getHttpAcceptLanguageReturnsExpectedValue()

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

Definition at line 1087 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 119 of file NormalizedParamsTest.php.

◆ getHttpHostReturnsSanitizedValueDataProvider()

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

Definition at line 29 of file NormalizedParamsTest.php.

◆ getHttpRefererReturnsExpectedValue()

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

Definition at line 1048 of file NormalizedParamsTest.php.

◆ getHttpUserAgentReturnsExpectedValue()

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

Definition at line 1061 of file NormalizedParamsTest.php.

◆ getPathInfoReturnsExpectedValue()

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

Definition at line 1035 of file NormalizedParamsTest.php.

◆ getQueryStringReturnsExpectedValue()

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

Definition at line 1113 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 743 of file NormalizedParamsTest.php.

◆ getRemoteAddressReturnsExpectedValueDataProvider()

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

Definition at line 686 of file NormalizedParamsTest.php.

◆ getRemoteHostReturnsExpectedValue()

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

Definition at line 1100 of file NormalizedParamsTest.php.

◆ getRequestDirReturnsExpectedValue()

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

Definition at line 613 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 812 of file NormalizedParamsTest.php.

◆ getRequestHostOnlyReturnsExpectedValueDataProvider()

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

Definition at line 752 of file NormalizedParamsTest.php.

◆ getRequestHostReturnsRequestHost()

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

Definition at line 334 of file NormalizedParamsTest.php.

◆ getRequestPortOnlyReturnsExpectedValueDataProvider()

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

Definition at line 821 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 881 of file NormalizedParamsTest.php.

◆ getRequestScriptReturnsExpectedValue()

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

Definition at line 599 of file NormalizedParamsTest.php.

◆ getRequestUriFetchesFromConfiguredRequestUriVar()

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

Definition at line 568 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 559 of file NormalizedParamsTest.php.

◆ getRequestUriReturnsExpectedValueDataProvider()

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

Definition at line 472 of file NormalizedParamsTest.php.

◆ getRequestUrlReturnsExpectedValue()

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

Definition at line 585 of file NormalizedParamsTest.php.

◆ getScriptFilenameReturnsThirdConstructorArgument()

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

Definition at line 890 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 463 of file NormalizedParamsTest.php.

◆ getScriptNameReturnsExpectedValueDataProvider()

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

Definition at line 348 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 975 of file NormalizedParamsTest.php.

◆ getSitePathReturnsExpectedPathDataProvider()

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

Definition at line 937 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 1026 of file NormalizedParamsTest.php.

◆ getSiteScriptReturnsExpectedPathDataProvider()

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

Definition at line 984 of file NormalizedParamsTest.php.

◆ getSiteUrlReturnsExpectedUrl()

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

Definition at line 920 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 677 of file NormalizedParamsTest.php.

◆ isBehindReverseProxyReturnsExpectedValueDataProvider()

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

Definition at line 627 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 325 of file NormalizedParamsTest.php.

◆ isHttpsReturnSanitizedValueDataProvider()

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

Definition at line 128 of file NormalizedParamsTest.php.