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

Public Member Functions

 constructorSetsAllProperties ()
 
 canSerializeToString (string $uri)
 
 withSchemeReturnsNewInstanceWithNewScheme ()
 
 withUserInfoReturnsNewInstanceWithProvidedUser ()
 
 withUserInfoReturnsNewInstanceWithProvidedUserAndPassword ()
 
 withHostReturnsNewInstanceWithProvidedHost ()
 
 withPortAndNullValueReturnsInstanceWithProvidedPort ()
 
 withPortReturnsNewInstanceWithProvidedPort ($port)
 
 withPortRaisesExceptionForInvalidPortsByRange ($port)
 
 standardPortAndSchemeDoesNotRenderPort ()
 
 standardPortAndNoSchemeDoesRenderPort ()
 
 noPortAndNoSchemeDoesNotRenderPort ()
 
 withPathReturnsNewInstanceWithProvidedPath ()
 
 withPathRaisesExceptionForInvalidPathsWithQuery ()
 
 withPathRaisesExceptionForInvalidPathsWithFragment ()
 
 withQueryReturnsNewInstanceWithProvidedQuery ()
 
 withQueryRaisesExceptionForInvalidQueryStringsByFragment ()
 
 withFragmentReturnsNewInstanceWithProvidedFragment ()
 
 getAuthorityReturnsExpectedValues ($url, $expected)
 
 canEmitOriginFormUrl ()
 
 settingEmptyPathOnAbsoluteUriReturnsAnEmptyPath ()
 
 stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath ()
 
 getPathOnOriginFormRemainsAnEmptyPath ()
 
 stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath ()
 
 constructorRaisesExceptionForNonStringURI ($uri)
 
 constructorRaisesExceptionForSeriouslyMalformedURI ()
 
 withSchemeStripsOffDelimiter ()
 
 constructWithUnsupportedSchemeRaisesAnException ($scheme)
 
 withSchemeUsingUnsupportedSchemeRaisesAnException ($scheme)
 
 withPathIsNotPrefixedWithSlashIfSetWithoutOne ()
 
 withEmptySchemeReturnsNewInstanceWithAbsoluteUri ()
 
 withPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString ()
 
 withQueryStripsQueryPrefixIfPresent ()
 
 withFragmentStripsFragmentPrefixIfPresent ()
 
 getAuthorityOmitsPortForStandardSchemePortCombinations ($scheme, $port)
 
 getPathIsProperlyEncoded ()
 
 getPathDoesNotBecomeDoubleEncoded ()
 
 getQueryIsProperlyEncoded ($query, $expected)
 
 getQueryIsNotDoubleEncoded ($query, $expected)
 
 getFragmentIsProperlyEncoded ()
 
 getFragmentIsNotDoubleEncoded ()
 

Static Public Member Functions

static canSerializeToStringDataProvider ()
 
static validPortsDataProvider ()
 
static invalidPortsDataProviderRange ()
 
static authorityInfoDataProvider ()
 
static invalidConstructorUrisDataProvider ()
 
static invalidSchemesDataProvider ()
 
static standardSchemePortCombinationsDataProvider ()
 
static queryStringsForEncodingDataProvider ()
 

Detailed Description

Definition at line 23 of file UriTest.php.

Member Function Documentation

◆ authorityInfoDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::authorityInfoDataProvider ( )
static

Definition at line 260 of file UriTest.php.

◆ canEmitOriginFormUrl()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::canEmitOriginFormUrl ( )
Test:

Definition at line 283 of file UriTest.php.

References TYPO3\CMS\Webhooks\Message\$url.

◆ canSerializeToString()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::canSerializeToString ( string  $uri)
Test:
‪@dataProvider canSerializeToStringDataProvider

Definition at line 53 of file UriTest.php.

◆ canSerializeToStringDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::canSerializeToStringDataProvider ( )
static

Definition at line 41 of file UriTest.php.

◆ constructorRaisesExceptionForNonStringURI()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::constructorRaisesExceptionForNonStringURI (   $uri)

@dataProvider invalidConstructorUrisDataProvider

Definition at line 343 of file UriTest.php.

◆ constructorRaisesExceptionForSeriouslyMalformedURI()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::constructorRaisesExceptionForSeriouslyMalformedURI ( )
Test:

Definition at line 352 of file UriTest.php.

◆ constructorSetsAllProperties()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::constructorSetsAllProperties ( )
Test:

Definition at line 28 of file UriTest.php.

◆ constructWithUnsupportedSchemeRaisesAnException()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::constructWithUnsupportedSchemeRaisesAnException (   $scheme)

@dataProvider invalidSchemesDataProvider

Test:

Definition at line 383 of file UriTest.php.

◆ getAuthorityOmitsPortForStandardSchemePortCombinations()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getAuthorityOmitsPortForStandardSchemePortCombinations (   $scheme,
  $port 
)

@dataProvider standardSchemePortCombinationsDataProvider

Test:

Definition at line 467 of file UriTest.php.

◆ getAuthorityReturnsExpectedValues()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getAuthorityReturnsExpectedValues (   $url,
  $expected 
)

@dataProvider authorityInfoDataProvider

Test:

Definition at line 274 of file UriTest.php.

References TYPO3\CMS\Webhooks\Message\$url.

◆ getFragmentIsNotDoubleEncoded()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getFragmentIsNotDoubleEncoded ( )
Test:

Definition at line 540 of file UriTest.php.

◆ getFragmentIsProperlyEncoded()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getFragmentIsProperlyEncoded ( )
Test:

Definition at line 530 of file UriTest.php.

◆ getPathDoesNotBecomeDoubleEncoded()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getPathDoesNotBecomeDoubleEncoded ( )
Test:

Definition at line 489 of file UriTest.php.

◆ getPathIsProperlyEncoded()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getPathIsProperlyEncoded ( )
Test:

Definition at line 479 of file UriTest.php.

◆ getPathOnOriginFormRemainsAnEmptyPath()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getPathOnOriginFormRemainsAnEmptyPath ( )
Test:

Definition at line 312 of file UriTest.php.

◆ getQueryIsNotDoubleEncoded()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getQueryIsNotDoubleEncoded (   $query,
  $expected 
)

@dataProvider queryStringsForEncodingDataProvider

Test:

Definition at line 521 of file UriTest.php.

◆ getQueryIsProperlyEncoded()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::getQueryIsProperlyEncoded (   $query,
  $expected 
)

@dataProvider queryStringsForEncodingDataProvider

Test:

Definition at line 511 of file UriTest.php.

◆ invalidConstructorUrisDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::invalidConstructorUrisDataProvider ( )
static

Definition at line 327 of file UriTest.php.

◆ invalidPortsDataProviderRange()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::invalidPortsDataProviderRange ( )
static

Definition at line 143 of file UriTest.php.

◆ invalidSchemesDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::invalidSchemesDataProvider ( )
static

Definition at line 368 of file UriTest.php.

◆ noPortAndNoSchemeDoesNotRenderPort()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::noPortAndNoSchemeDoesNotRenderPort ( )
Test:

Definition at line 185 of file UriTest.php.

◆ queryStringsForEncodingDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::queryStringsForEncodingDataProvider ( )
static

Definition at line 496 of file UriTest.php.

◆ settingEmptyPathOnAbsoluteUriReturnsAnEmptyPath()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::settingEmptyPathOnAbsoluteUriReturnsAnEmptyPath ( )
Test:

Definition at line 293 of file UriTest.php.

◆ standardPortAndNoSchemeDoesRenderPort()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::standardPortAndNoSchemeDoesRenderPort ( )
Test:

Definition at line 176 of file UriTest.php.

◆ standardPortAndSchemeDoesNotRenderPort()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::standardPortAndSchemeDoesNotRenderPort ( )
Test:

Definition at line 167 of file UriTest.php.

◆ standardSchemePortCombinationsDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::standardSchemePortCombinationsDataProvider ( )
static

Definition at line 455 of file UriTest.php.

◆ stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath ( )
Test:

Definition at line 303 of file UriTest.php.

◆ stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath ( )
Test:

Definition at line 321 of file UriTest.php.

◆ validPortsDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Http\UriTest::validPortsDataProvider ( )
static

Definition at line 118 of file UriTest.php.

◆ withEmptySchemeReturnsNewInstanceWithAbsoluteUri()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withEmptySchemeReturnsNewInstanceWithAbsoluteUri ( )
Test:

Definition at line 415 of file UriTest.php.

◆ withFragmentReturnsNewInstanceWithProvidedFragment()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withFragmentReturnsNewInstanceWithProvidedFragment ( )
Test:

Definition at line 251 of file UriTest.php.

◆ withFragmentStripsFragmentPrefixIfPresent()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withFragmentStripsFragmentPrefixIfPresent ( )
Test:

Definition at line 448 of file UriTest.php.

◆ withHostReturnsNewInstanceWithProvidedHost()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withHostReturnsNewInstanceWithProvidedHost ( )
Test:

Definition at line 97 of file UriTest.php.

◆ withPathIsNotPrefixedWithSlashIfSetWithoutOne()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPathIsNotPrefixedWithSlashIfSetWithoutOne ( )
Test:

Definition at line 405 of file UriTest.php.

◆ withPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString ( )
Test:

Definition at line 428 of file UriTest.php.

◆ withPathRaisesExceptionForInvalidPathsWithFragment()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPathRaisesExceptionForInvalidPathsWithFragment ( )
Test:

Definition at line 217 of file UriTest.php.

◆ withPathRaisesExceptionForInvalidPathsWithQuery()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPathRaisesExceptionForInvalidPathsWithQuery ( )
Test:

Definition at line 206 of file UriTest.php.

◆ withPathReturnsNewInstanceWithProvidedPath()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPathReturnsNewInstanceWithProvidedPath ( )
Test:

Definition at line 194 of file UriTest.php.

◆ withPortAndNullValueReturnsInstanceWithProvidedPort()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPortAndNullValueReturnsInstanceWithProvidedPort ( )
Test:

Definition at line 109 of file UriTest.php.

◆ withPortRaisesExceptionForInvalidPortsByRange()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPortRaisesExceptionForInvalidPortsByRange (   $port)

@dataProvider invalidPortsDataProviderRange

Test:

Definition at line 156 of file UriTest.php.

◆ withPortReturnsNewInstanceWithProvidedPort()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withPortReturnsNewInstanceWithProvidedPort (   $port)

@dataProvider validPortsDataProvider

Test:

Definition at line 131 of file UriTest.php.

◆ withQueryRaisesExceptionForInvalidQueryStringsByFragment()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withQueryRaisesExceptionForInvalidQueryStringsByFragment ( )
Test:

Definition at line 240 of file UriTest.php.

◆ withQueryReturnsNewInstanceWithProvidedQuery()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withQueryReturnsNewInstanceWithProvidedQuery ( )
Test:

Definition at line 228 of file UriTest.php.

◆ withQueryStripsQueryPrefixIfPresent()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withQueryStripsQueryPrefixIfPresent ( )
Test:

Definition at line 438 of file UriTest.php.

◆ withSchemeReturnsNewInstanceWithNewScheme()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withSchemeReturnsNewInstanceWithNewScheme ( )
Test:

Definition at line 61 of file UriTest.php.

◆ withSchemeStripsOffDelimiter()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withSchemeStripsOffDelimiter ( )
Test:

Definition at line 361 of file UriTest.php.

◆ withSchemeUsingUnsupportedSchemeRaisesAnException()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withSchemeUsingUnsupportedSchemeRaisesAnException (   $scheme)

@dataProvider invalidSchemesDataProvider

Test:

Definition at line 394 of file UriTest.php.

◆ withUserInfoReturnsNewInstanceWithProvidedUser()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withUserInfoReturnsNewInstanceWithProvidedUser ( )
Test:

Definition at line 73 of file UriTest.php.

◆ withUserInfoReturnsNewInstanceWithProvidedUserAndPassword()

TYPO3\CMS\Core\Tests\Unit\Http\UriTest::withUserInfoReturnsNewInstanceWithProvidedUserAndPassword ( )
Test:

Definition at line 85 of file UriTest.php.