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

Public Member Functions

 getHttpHostReturnsSanitizedValue (array $serverParams, array $configuration, string $expected)
 
 isHttpsReturnSanitizedValue (array $serverParams, array $configuration, bool $expected)
 
 getRequestHostReturnsRequestHost ()
 
 getScriptNameReturnsExpectedValue (array $serverParams, array $configuration, string $expected)
 
 getRequestUriReturnsExpectedValue (array $serverParams, array $configuration, string $expected)
 
 getRequestUriFetchesFromConfiguredRequestUriVar ()
 
 getRequestUrlReturnsExpectedValue ()
 
 getRequestScriptReturnsExpectedValue ()
 
 getRequestDirReturnsExpectedValue ()
 
 isBehindReverseProxyReturnsExpectedValue (array $serverParams, array $configuration, bool $expected)
 
 getRemoteAddressReturnsExpectedValue (array $serverParams, array $configuration, string $expected)
 
 getRequestHostOnlyReturnsExpectedValue (array $serverParams, string $expected)
 
 getRequestPortReturnsExpectedValue (array $serverParams, int $expected)
 
 getScriptFilenameReturnsThirdConstructorArgument ()
 
 getDocumentRootReturnsExpectedPath ()
 
 getSiteUrlReturnsExpectedUrl ()
 
 getSiteUrlReturnsExpectedUrlForCliCommand ()
 
 getSitePathReturnsExpectedPath (array $serverParams, string $pathThisScript, string $pathSite, string $expected)
 
 getSiteScriptReturnsExpectedPath (array $serverParams, string $pathThisScript, string $pathSite, string $expected)
 
 getPathInfoReturnsExpectedValue ()
 
 getHttpRefererReturnsExpectedValue ()
 
 getHttpUserAgentReturnsExpectedValue ()
 
 getHttpAcceptEncodingReturnsExpectedValue ()
 
 getHttpAcceptLanguageReturnsExpectedValue ()
 
 getRemoteHostReturnsExpectedValue ()
 
 getQueryStringReturnsExpectedValue ()
 

Static Public Member Functions

static array[] getHttpHostReturnsSanitizedValueDataProvider ()
 
static array[] isHttpsReturnSanitizedValueDataProvider ()
 
static array[] getScriptNameReturnsExpectedValueDataProvider ()
 
static array[] getRequestUriReturnsExpectedValueDataProvider ()
 
static array[] isBehindReverseProxyReturnsExpectedValueDataProvider ()
 
static array[] getRemoteAddressReturnsExpectedValueDataProvider ()
 
static getRequestHostOnlyReturnsExpectedValueDataProvider ()
 
static getRequestPortOnlyReturnsExpectedValueDataProvider ()
 
static array[] getSitePathReturnsExpectedPathDataProvider ()
 
static array[] getSiteScriptReturnsExpectedPathDataProvider ()
 

Detailed Description

Definition at line 23 of file NormalizedParamsTest.php.

Member Function Documentation

◆ getDocumentRootReturnsExpectedPath()

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

Definition at line 837 of file NormalizedParamsTest.php.

◆ getHttpAcceptEncodingReturnsExpectedValue()

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

Definition at line 1013 of file NormalizedParamsTest.php.

◆ getHttpAcceptLanguageReturnsExpectedValue()

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

Definition at line 1026 of file NormalizedParamsTest.php.

◆ getHttpHostReturnsSanitizedValue()

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

Definition at line 127 of file NormalizedParamsTest.php.

◆ getHttpHostReturnsSanitizedValueDataProvider()

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

Definition at line 28 of file NormalizedParamsTest.php.

◆ getHttpRefererReturnsExpectedValue()

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

Definition at line 987 of file NormalizedParamsTest.php.

◆ getHttpUserAgentReturnsExpectedValue()

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

Definition at line 1000 of file NormalizedParamsTest.php.

◆ getPathInfoReturnsExpectedValue()

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

Definition at line 974 of file NormalizedParamsTest.php.

◆ getQueryStringReturnsExpectedValue()

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

Definition at line 1052 of file NormalizedParamsTest.php.

◆ getRemoteAddressReturnsExpectedValue()

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

Definition at line 686 of file NormalizedParamsTest.php.

◆ getRemoteAddressReturnsExpectedValueDataProvider()

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

Definition at line 632 of file NormalizedParamsTest.php.

◆ getRemoteHostReturnsExpectedValue()

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

Definition at line 1039 of file NormalizedParamsTest.php.

◆ getRequestDirReturnsExpectedValue()

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

Definition at line 562 of file NormalizedParamsTest.php.

◆ getRequestHostOnlyReturnsExpectedValue()

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

Definition at line 750 of file NormalizedParamsTest.php.

◆ getRequestHostOnlyReturnsExpectedValueDataProvider()

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

Definition at line 692 of file NormalizedParamsTest.php.

◆ getRequestHostReturnsRequestHost()

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

Definition at line 339 of file NormalizedParamsTest.php.

◆ getRequestPortOnlyReturnsExpectedValueDataProvider()

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

Definition at line 756 of file NormalizedParamsTest.php.

◆ getRequestPortReturnsExpectedValue()

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

Definition at line 814 of file NormalizedParamsTest.php.

◆ getRequestScriptReturnsExpectedValue()

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

Definition at line 548 of file NormalizedParamsTest.php.

◆ getRequestUriFetchesFromConfiguredRequestUriVar()

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

Definition at line 517 of file NormalizedParamsTest.php.

References $GLOBALS.

◆ getRequestUriReturnsExpectedValue()

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

Definition at line 508 of file NormalizedParamsTest.php.

◆ getRequestUriReturnsExpectedValueDataProvider()

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

Definition at line 416 of file NormalizedParamsTest.php.

◆ getRequestUrlReturnsExpectedValue()

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

Definition at line 534 of file NormalizedParamsTest.php.

◆ getScriptFilenameReturnsThirdConstructorArgument()

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

Definition at line 823 of file NormalizedParamsTest.php.

◆ getScriptNameReturnsExpectedValue()

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

Definition at line 407 of file NormalizedParamsTest.php.

◆ getScriptNameReturnsExpectedValueDataProvider()

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

Definition at line 353 of file NormalizedParamsTest.php.

◆ getSitePathReturnsExpectedPath()

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

Definition at line 916 of file NormalizedParamsTest.php.

◆ getSitePathReturnsExpectedPathDataProvider()

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

Definition at line 882 of file NormalizedParamsTest.php.

◆ getSiteScriptReturnsExpectedPath()

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

Definition at line 965 of file NormalizedParamsTest.php.

◆ getSiteScriptReturnsExpectedPathDataProvider()

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

Definition at line 925 of file NormalizedParamsTest.php.

◆ getSiteUrlReturnsExpectedUrl()

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

Definition at line 853 of file NormalizedParamsTest.php.

◆ getSiteUrlReturnsExpectedUrlForCliCommand()

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

Definition at line 869 of file NormalizedParamsTest.php.

◆ isBehindReverseProxyReturnsExpectedValue()

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

Definition at line 623 of file NormalizedParamsTest.php.

◆ isBehindReverseProxyReturnsExpectedValueDataProvider()

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

Definition at line 576 of file NormalizedParamsTest.php.

◆ isHttpsReturnSanitizedValue()

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

Definition at line 330 of file NormalizedParamsTest.php.

◆ isHttpsReturnSanitizedValueDataProvider()

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

Definition at line 136 of file NormalizedParamsTest.php.