‪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 25 of file NormalizedParamsTest.php.

Member Function Documentation

◆ getDocumentRootReturnsExpectedPath()

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

Definition at line 809 of file NormalizedParamsTest.php.

◆ getHttpAcceptEncodingReturnsExpectedValue()

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

Definition at line 969 of file NormalizedParamsTest.php.

◆ getHttpAcceptLanguageReturnsExpectedValue()

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

Definition at line 980 of file NormalizedParamsTest.php.

◆ getHttpHostReturnsSanitizedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getHttpHostReturnsSanitizedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)

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 30 of file NormalizedParamsTest.php.

◆ getHttpRefererReturnsExpectedValue()

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

Definition at line 947 of file NormalizedParamsTest.php.

◆ getHttpUserAgentReturnsExpectedValue()

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

Definition at line 958 of file NormalizedParamsTest.php.

◆ getPathInfoReturnsExpectedValue()

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

Definition at line 936 of file NormalizedParamsTest.php.

◆ getQueryStringReturnsExpectedValue()

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

Definition at line 1002 of file NormalizedParamsTest.php.

◆ getRemoteAddressReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRemoteAddressReturnsExpectedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)

Definition at line 666 of file NormalizedParamsTest.php.

◆ getRemoteAddressReturnsExpectedValueDataProvider()

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

Definition at line 614 of file NormalizedParamsTest.php.

◆ getRemoteHostReturnsExpectedValue()

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

Definition at line 991 of file NormalizedParamsTest.php.

◆ getRequestDirReturnsExpectedValue()

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

Definition at line 546 of file NormalizedParamsTest.php.

◆ getRequestHostOnlyReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestHostOnlyReturnsExpectedValue ( array  $serverParams,
string  $expected 
)

Definition at line 728 of file NormalizedParamsTest.php.

◆ getRequestHostOnlyReturnsExpectedValueDataProvider()

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

Definition at line 672 of file NormalizedParamsTest.php.

◆ getRequestHostReturnsRequestHost()

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

Definition at line 335 of file NormalizedParamsTest.php.

◆ getRequestPortOnlyReturnsExpectedValueDataProvider()

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

Definition at line 734 of file NormalizedParamsTest.php.

◆ getRequestPortReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestPortReturnsExpectedValue ( array  $serverParams,
int  $expected 
)

Definition at line 790 of file NormalizedParamsTest.php.

◆ getRequestScriptReturnsExpectedValue()

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

Definition at line 534 of file NormalizedParamsTest.php.

◆ getRequestUriFetchesFromConfiguredRequestUriVar()

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

Definition at line 507 of file NormalizedParamsTest.php.

References $GLOBALS.

◆ getRequestUriReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getRequestUriReturnsExpectedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)

Definition at line 500 of file NormalizedParamsTest.php.

◆ getRequestUriReturnsExpectedValueDataProvider()

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

Definition at line 410 of file NormalizedParamsTest.php.

◆ getRequestUrlReturnsExpectedValue()

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

Definition at line 522 of file NormalizedParamsTest.php.

◆ getScriptFilenameReturnsThirdConstructorArgument()

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

Definition at line 797 of file NormalizedParamsTest.php.

◆ getScriptNameReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::getScriptNameReturnsExpectedValue ( array  $serverParams,
array  $configuration,
string  $expected 
)

Definition at line 401 of file NormalizedParamsTest.php.

◆ getScriptNameReturnsExpectedValueDataProvider()

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

Definition at line 349 of file NormalizedParamsTest.php.

◆ getSitePathReturnsExpectedPath()

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

Definition at line 882 of file NormalizedParamsTest.php.

◆ getSitePathReturnsExpectedPathDataProvider()

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

Definition at line 850 of file NormalizedParamsTest.php.

◆ getSiteScriptReturnsExpectedPath()

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

Definition at line 929 of file NormalizedParamsTest.php.

◆ getSiteScriptReturnsExpectedPathDataProvider()

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

Definition at line 891 of file NormalizedParamsTest.php.

◆ getSiteUrlReturnsExpectedUrl()

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

Definition at line 823 of file NormalizedParamsTest.php.

◆ getSiteUrlReturnsExpectedUrlForCliCommand()

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

Definition at line 837 of file NormalizedParamsTest.php.

◆ isBehindReverseProxyReturnsExpectedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::isBehindReverseProxyReturnsExpectedValue ( array  $serverParams,
array  $configuration,
bool  $expected 
)

Definition at line 605 of file NormalizedParamsTest.php.

◆ isBehindReverseProxyReturnsExpectedValueDataProvider()

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

Definition at line 560 of file NormalizedParamsTest.php.

◆ isHttpsReturnSanitizedValue()

TYPO3\CMS\Core\Tests\Unit\Http\NormalizedParamsTest::isHttpsReturnSanitizedValue ( array  $serverParams,
array  $configuration,
bool  $expected 
)

Definition at line 328 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.