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

Member Function Documentation

◆ authorityInfoDataProvider()

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

Definition at line 228 of file UriTest.php.

◆ canEmitOriginFormUrl()

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

Definition at line 247 of file UriTest.php.

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

◆ canSerializeToString()

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

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)

Definition at line 297 of file UriTest.php.

◆ constructorRaisesExceptionForSeriouslyMalformedURI()

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

Definition at line 304 of file UriTest.php.

◆ constructorSetsAllProperties()

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

Definition at line 28 of file UriTest.php.

◆ constructWithUnsupportedSchemeRaisesAnException()

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

Definition at line 331 of file UriTest.php.

◆ getAuthorityOmitsPortForStandardSchemePortCombinations()

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

Definition at line 401 of file UriTest.php.

◆ getAuthorityReturnsExpectedValues()

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

Definition at line 240 of file UriTest.php.

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

◆ getFragmentIsNotDoubleEncoded()

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

Definition at line 462 of file UriTest.php.

◆ getFragmentIsProperlyEncoded()

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

Definition at line 454 of file UriTest.php.

◆ getPathDoesNotBecomeDoubleEncoded()

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

Definition at line 419 of file UriTest.php.

◆ getPathIsProperlyEncoded()

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

Definition at line 411 of file UriTest.php.

◆ getPathOnOriginFormRemainsAnEmptyPath()

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

Definition at line 270 of file UriTest.php.

◆ getQueryIsNotDoubleEncoded()

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

Definition at line 447 of file UriTest.php.

◆ getQueryIsProperlyEncoded()

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

Definition at line 439 of file UriTest.php.

◆ invalidConstructorUrisDataProvider()

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

Definition at line 283 of file UriTest.php.

◆ invalidPortsDataProviderRange()

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

Definition at line 131 of file UriTest.php.

◆ invalidSchemesDataProvider()

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

Definition at line 318 of file UriTest.php.

◆ noPortAndNoSchemeDoesNotRenderPort()

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

Definition at line 165 of file UriTest.php.

◆ queryStringsForEncodingDataProvider()

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

Definition at line 426 of file UriTest.php.

◆ settingEmptyPathOnAbsoluteUriReturnsAnEmptyPath()

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

Definition at line 255 of file UriTest.php.

◆ standardPortAndNoSchemeDoesRenderPort()

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

Definition at line 158 of file UriTest.php.

◆ standardPortAndSchemeDoesNotRenderPort()

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

Definition at line 151 of file UriTest.php.

◆ standardSchemePortCombinationsDataProvider()

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

Definition at line 391 of file UriTest.php.

◆ stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath()

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

Definition at line 263 of file UriTest.php.

◆ stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath()

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

Definition at line 277 of file UriTest.php.

◆ validPortsDataProvider()

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

Definition at line 108 of file UriTest.php.

◆ withEmptySchemeReturnsNewInstanceWithAbsoluteUri()

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

Definition at line 357 of file UriTest.php.

◆ withFragmentReturnsNewInstanceWithProvidedFragment()

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

Definition at line 219 of file UriTest.php.

◆ withFragmentStripsFragmentPrefixIfPresent()

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

Definition at line 384 of file UriTest.php.

◆ withHostReturnsNewInstanceWithProvidedHost()

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

Definition at line 89 of file UriTest.php.

◆ withPathIsNotPrefixedWithSlashIfSetWithoutOne()

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

Definition at line 349 of file UriTest.php.

◆ withPathNotSlashPrefixedIsEmittedWithSlashDelimiterWhenUriIsCastToString()

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

Definition at line 368 of file UriTest.php.

◆ withPathRaisesExceptionForInvalidPathsWithFragment()

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

Definition at line 191 of file UriTest.php.

◆ withPathRaisesExceptionForInvalidPathsWithQuery()

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

Definition at line 182 of file UriTest.php.

◆ withPathReturnsNewInstanceWithProvidedPath()

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

Definition at line 172 of file UriTest.php.

◆ withPortAndNullValueReturnsInstanceWithProvidedPort()

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

Definition at line 99 of file UriTest.php.

◆ withPortRaisesExceptionForInvalidPortsByRange()

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

Definition at line 142 of file UriTest.php.

◆ withPortReturnsNewInstanceWithProvidedPort()

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

Definition at line 119 of file UriTest.php.

◆ withQueryRaisesExceptionForInvalidQueryStringsByFragment()

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

Definition at line 210 of file UriTest.php.

◆ withQueryReturnsNewInstanceWithProvidedQuery()

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

Definition at line 200 of file UriTest.php.

◆ withQueryStripsQueryPrefixIfPresent()

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

Definition at line 376 of file UriTest.php.

◆ withSchemeReturnsNewInstanceWithNewScheme()

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

Definition at line 59 of file UriTest.php.

◆ withSchemeStripsOffDelimiter()

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

Definition at line 311 of file UriTest.php.

◆ withSchemeUsingUnsupportedSchemeRaisesAnException()

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

Definition at line 340 of file UriTest.php.

◆ withUserInfoReturnsNewInstanceWithProvidedUser()

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

Definition at line 69 of file UriTest.php.

◆ withUserInfoReturnsNewInstanceWithProvidedUserAndPassword()

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

Definition at line 79 of file UriTest.php.