UrlGeneratorTest
extends TestCase
in package
Table of Contents
- provideLookAroundRequirementsInPath() : mixed
- provideRelativePaths() : mixed
- testAbsoluteSecureUrlWithNonStandardPort() : mixed
- testAbsoluteSecureUrlWithPort443() : mixed
- testAbsoluteUrlFallbackToNetworkIfSchemeIsEmptyAndHostIsNot() : mixed
- testAbsoluteUrlFallbackToPathIfHostIsEmptyAndSchemeIsHttp() : mixed
- testAbsoluteUrlFallbackToPathIfSchemeAndHostAreEmpty() : mixed
- testAbsoluteUrlWithExtraParameters() : mixed
- testAbsoluteUrlWithNonHttpSchemeAndEmptyHost() : mixed
- testAbsoluteUrlWithNonStandardPort() : mixed
- testAbsoluteUrlWithPort80() : mixed
- testAdjacentVariables() : mixed
- testArrayQueryParamSameAsDefault() : mixed
- testDefaultHostIsUsedWhenContextHostIsEmpty() : mixed
- testDefaultHostIsUsedWhenContextHostIsEmptyAndPathReferenceType() : mixed
- testDefaultRequirementOfVariable() : mixed
- testDefaultRequirementOfVariableDisallowsNextSeparator() : mixed
- testDefaultRequirementOfVariableDisallowsSlash() : mixed
- testEncodingOfRelativePathSegments() : mixed
- testFragmentsCanBeAppendedToUrls() : mixed
- testFragmentsCanBeDefinedAsDefaults() : mixed
- testFragmentsDoNotEscapeValidCharacters() : mixed
- testGenerateForRouteWithInvalidMandatoryParameter() : mixed
- testGenerateForRouteWithInvalidOptionalParameter() : mixed
- testGenerateForRouteWithInvalidOptionalParameterNonStrict() : mixed
- testGenerateForRouteWithInvalidOptionalParameterNonStrictWithLogger() : mixed
- testGenerateForRouteWithInvalidParameter() : mixed
- testGenerateForRouteWithInvalidParameterButDisabledRequirementsCheck() : mixed
- testGenerateForRouteWithInvalidUtf8Parameter() : mixed
- testGenerateForRouteWithoutMandatoryParameter() : mixed
- testGenerateNetworkPath() : mixed
- testGenerateRelativePath() : mixed
- testGenerateWithoutRoutes() : mixed
- testGenerateWithSpecialRouteName() : mixed
- testGetRelativePath() : mixed
- testGlobalParameterHasHigherPriorityThanDefault() : mixed
- testHostIsCaseInsensitive() : mixed
- testLookRoundRequirementsInPath() : mixed
- testNotPassedOptionalParameterInBetween() : mixed
- testNoTrailingSlashForMultipleOptionalParameters() : mixed
- testNullForOptionalParameterIsIgnored() : mixed
- testOptionalVariableWithNoRealSeparator() : mixed
- testPathWithTwoStartingSlashes() : mixed
- testQueryParamSameAsDefault() : mixed
- testRelativeUrlWithExtraParameters() : mixed
- testRelativeUrlWithNullParameter() : mixed
- testRelativeUrlWithNullParameterButNotOptional() : mixed
- testRelativeUrlWithOptionalZeroParameter() : mixed
- testRelativeUrlWithoutParameters() : mixed
- testRelativeUrlWithParameter() : mixed
- testRequiredParamAndEmptyPassed() : mixed
- testRequiredVariableWithNoRealSeparator() : mixed
- testSchemeRequirementCreatesUrlForFirstRequiredScheme() : mixed
- testSchemeRequirementDoesNothingIfSameCurrentScheme() : mixed
- testSchemeRequirementForcesAbsoluteUrl() : mixed
- testUrlEncoding() : mixed
- testUrlWithExtraParametersFromGlobals() : mixed
- testUrlWithGlobalParameter() : mixed
- testUrlWithInvalidParameterEqualsDefaultValueInHost() : mixed
- testUrlWithInvalidParameterInHost() : mixed
- testUrlWithInvalidParameterInHostInNonStrictMode() : mixed
- testUrlWithInvalidParameterInHostWhenParamHasADefaultValue() : mixed
- testUrlWithNullExtraParameters() : mixed
- testWithAnIntegerAsADefaultValue() : mixed
- testWithHostDifferentFromContext() : mixed
- testWithHostSameAsContext() : mixed
- testWithHostSameAsContextAndAbsolute() : mixed
- getGenerator() : mixed
- getRoutes() : mixed
Methods
provideLookAroundRequirementsInPath()
public
provideLookAroundRequirementsInPath() : mixed
Return values
mixed —provideRelativePaths()
public
provideRelativePaths() : mixed
Return values
mixed —testAbsoluteSecureUrlWithNonStandardPort()
public
testAbsoluteSecureUrlWithNonStandardPort() : mixed
Return values
mixed —testAbsoluteSecureUrlWithPort443()
public
testAbsoluteSecureUrlWithPort443() : mixed
Return values
mixed —testAbsoluteUrlFallbackToNetworkIfSchemeIsEmptyAndHostIsNot()
public
testAbsoluteUrlFallbackToNetworkIfSchemeIsEmptyAndHostIsNot() : mixed
Return values
mixed —testAbsoluteUrlFallbackToPathIfHostIsEmptyAndSchemeIsHttp()
public
testAbsoluteUrlFallbackToPathIfHostIsEmptyAndSchemeIsHttp() : mixed
Return values
mixed —testAbsoluteUrlFallbackToPathIfSchemeAndHostAreEmpty()
public
testAbsoluteUrlFallbackToPathIfSchemeAndHostAreEmpty() : mixed
Return values
mixed —testAbsoluteUrlWithExtraParameters()
public
testAbsoluteUrlWithExtraParameters() : mixed
Return values
mixed —testAbsoluteUrlWithNonHttpSchemeAndEmptyHost()
public
testAbsoluteUrlWithNonHttpSchemeAndEmptyHost() : mixed
Return values
mixed —testAbsoluteUrlWithNonStandardPort()
public
testAbsoluteUrlWithNonStandardPort() : mixed
Return values
mixed —testAbsoluteUrlWithPort80()
public
testAbsoluteUrlWithPort80() : mixed
Return values
mixed —testAdjacentVariables()
public
testAdjacentVariables() : mixed
Return values
mixed —testArrayQueryParamSameAsDefault()
public
testArrayQueryParamSameAsDefault() : mixed
Return values
mixed —testDefaultHostIsUsedWhenContextHostIsEmpty()
public
testDefaultHostIsUsedWhenContextHostIsEmpty() : mixed
Return values
mixed —testDefaultHostIsUsedWhenContextHostIsEmptyAndPathReferenceType()
public
testDefaultHostIsUsedWhenContextHostIsEmptyAndPathReferenceType() : mixed
Return values
mixed —testDefaultRequirementOfVariable()
public
testDefaultRequirementOfVariable() : mixed
Return values
mixed —testDefaultRequirementOfVariableDisallowsNextSeparator()
public
testDefaultRequirementOfVariableDisallowsNextSeparator() : mixed
Return values
mixed —testDefaultRequirementOfVariableDisallowsSlash()
public
testDefaultRequirementOfVariableDisallowsSlash() : mixed
Return values
mixed —testEncodingOfRelativePathSegments()
public
testEncodingOfRelativePathSegments() : mixed
Return values
mixed —testFragmentsCanBeAppendedToUrls()
public
testFragmentsCanBeAppendedToUrls() : mixed
Return values
mixed —testFragmentsCanBeDefinedAsDefaults()
public
testFragmentsCanBeDefinedAsDefaults() : mixed
Return values
mixed —testFragmentsDoNotEscapeValidCharacters()
public
testFragmentsDoNotEscapeValidCharacters() : mixed
Return values
mixed —testGenerateForRouteWithInvalidMandatoryParameter()
public
testGenerateForRouteWithInvalidMandatoryParameter() : mixed
Return values
mixed —testGenerateForRouteWithInvalidOptionalParameter()
public
testGenerateForRouteWithInvalidOptionalParameter() : mixed
Return values
mixed —testGenerateForRouteWithInvalidOptionalParameterNonStrict()
public
testGenerateForRouteWithInvalidOptionalParameterNonStrict() : mixed
Return values
mixed —testGenerateForRouteWithInvalidOptionalParameterNonStrictWithLogger()
public
testGenerateForRouteWithInvalidOptionalParameterNonStrictWithLogger() : mixed
Return values
mixed —testGenerateForRouteWithInvalidParameter()
public
testGenerateForRouteWithInvalidParameter() : mixed
Return values
mixed —testGenerateForRouteWithInvalidParameterButDisabledRequirementsCheck()
public
testGenerateForRouteWithInvalidParameterButDisabledRequirementsCheck() : mixed
Return values
mixed —testGenerateForRouteWithInvalidUtf8Parameter()
public
testGenerateForRouteWithInvalidUtf8Parameter() : mixed
Return values
mixed —testGenerateForRouteWithoutMandatoryParameter()
public
testGenerateForRouteWithoutMandatoryParameter() : mixed
Return values
mixed —testGenerateNetworkPath()
public
testGenerateNetworkPath() : mixed
Return values
mixed —testGenerateRelativePath()
public
testGenerateRelativePath() : mixed
Return values
mixed —testGenerateWithoutRoutes()
public
testGenerateWithoutRoutes() : mixed
Return values
mixed —testGenerateWithSpecialRouteName()
public
testGenerateWithSpecialRouteName() : mixed
Return values
mixed —testGetRelativePath()
public
testGetRelativePath(mixed $sourcePath, mixed $targetPath, mixed $expectedPath) : mixed
Parameters
- $sourcePath : mixed
- $targetPath : mixed
- $expectedPath : mixed
Tags
Return values
mixed —testGlobalParameterHasHigherPriorityThanDefault()
public
testGlobalParameterHasHigherPriorityThanDefault() : mixed
Return values
mixed —testHostIsCaseInsensitive()
public
testHostIsCaseInsensitive() : mixed
Return values
mixed —testLookRoundRequirementsInPath()
public
testLookRoundRequirementsInPath(mixed $expected, mixed $path, mixed $requirement) : mixed
Parameters
- $expected : mixed
- $path : mixed
- $requirement : mixed
Tags
Return values
mixed —testNotPassedOptionalParameterInBetween()
public
testNotPassedOptionalParameterInBetween() : mixed
Return values
mixed —testNoTrailingSlashForMultipleOptionalParameters()
public
testNoTrailingSlashForMultipleOptionalParameters() : mixed
Return values
mixed —testNullForOptionalParameterIsIgnored()
public
testNullForOptionalParameterIsIgnored() : mixed
Return values
mixed —testOptionalVariableWithNoRealSeparator()
public
testOptionalVariableWithNoRealSeparator() : mixed
Return values
mixed —testPathWithTwoStartingSlashes()
public
testPathWithTwoStartingSlashes() : mixed
Return values
mixed —testQueryParamSameAsDefault()
public
testQueryParamSameAsDefault() : mixed
Return values
mixed —testRelativeUrlWithExtraParameters()
public
testRelativeUrlWithExtraParameters() : mixed
Return values
mixed —testRelativeUrlWithNullParameter()
public
testRelativeUrlWithNullParameter() : mixed
Return values
mixed —testRelativeUrlWithNullParameterButNotOptional()
public
testRelativeUrlWithNullParameterButNotOptional() : mixed
Return values
mixed —testRelativeUrlWithOptionalZeroParameter()
public
testRelativeUrlWithOptionalZeroParameter() : mixed
Return values
mixed —testRelativeUrlWithoutParameters()
public
testRelativeUrlWithoutParameters() : mixed
Return values
mixed —testRelativeUrlWithParameter()
public
testRelativeUrlWithParameter() : mixed
Return values
mixed —testRequiredParamAndEmptyPassed()
public
testRequiredParamAndEmptyPassed() : mixed
Return values
mixed —testRequiredVariableWithNoRealSeparator()
public
testRequiredVariableWithNoRealSeparator() : mixed
Return values
mixed —testSchemeRequirementCreatesUrlForFirstRequiredScheme()
public
testSchemeRequirementCreatesUrlForFirstRequiredScheme() : mixed
Return values
mixed —testSchemeRequirementDoesNothingIfSameCurrentScheme()
public
testSchemeRequirementDoesNothingIfSameCurrentScheme() : mixed
Return values
mixed —testSchemeRequirementForcesAbsoluteUrl()
public
testSchemeRequirementForcesAbsoluteUrl() : mixed
Return values
mixed —testUrlEncoding()
public
testUrlEncoding() : mixed
Return values
mixed —testUrlWithExtraParametersFromGlobals()
public
testUrlWithExtraParametersFromGlobals() : mixed
Return values
mixed —testUrlWithGlobalParameter()
public
testUrlWithGlobalParameter() : mixed
Return values
mixed —testUrlWithInvalidParameterEqualsDefaultValueInHost()
public
testUrlWithInvalidParameterEqualsDefaultValueInHost() : mixed
Return values
mixed —testUrlWithInvalidParameterInHost()
public
testUrlWithInvalidParameterInHost() : mixed
Return values
mixed —testUrlWithInvalidParameterInHostInNonStrictMode()
public
testUrlWithInvalidParameterInHostInNonStrictMode() : mixed
Return values
mixed —testUrlWithInvalidParameterInHostWhenParamHasADefaultValue()
public
testUrlWithInvalidParameterInHostWhenParamHasADefaultValue() : mixed
Return values
mixed —testUrlWithNullExtraParameters()
public
testUrlWithNullExtraParameters() : mixed
Return values
mixed —testWithAnIntegerAsADefaultValue()
public
testWithAnIntegerAsADefaultValue() : mixed
Return values
mixed —testWithHostDifferentFromContext()
public
testWithHostDifferentFromContext() : mixed
Return values
mixed —testWithHostSameAsContext()
public
testWithHostSameAsContext() : mixed
Return values
mixed —testWithHostSameAsContextAndAbsolute()
public
testWithHostSameAsContextAndAbsolute() : mixed
Return values
mixed —getGenerator()
protected
getGenerator(RouteCollection $routes[, array<string|int, mixed> $parameters = [] ][, mixed $logger = null ]) : mixed
Parameters
- $routes : RouteCollection
- $parameters : array<string|int, mixed> = []
- $logger : mixed = null
Return values
mixed —getRoutes()
protected
getRoutes(mixed $name, Route $route) : mixed
Parameters
- $name : mixed
- $route : Route