PHP 클래스 Neos\Flow\Tests\Unit\Mvc\Routing\RouteTest

상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject
$mockPersistenceManager Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject
$route Neos\Flow\Mvc\Routing\Route
$routeValues array

공개 메소드들

메소드 설명
byDefaultRouteDoesNotResolveIfUriPatternContainsLessValuesThanAreSpecified ( )
compareAndRemoveMatchingDefaultValuesDataProvider ( ) Data provider
compareAndRemoveMatchingDefaultValuesTests ( array $defaults, array $routeValues, array $expectedModifiedRouteValues, boolean $expectedResult )
defaultValuesAreSetForUriPatternSegmentsWithMultipleOptionalRouteParts ( )
getMatchResultsReturnsCorrectResultsAfterSuccessfulMatch ( )
httpMethodConstraintsCanBeSetAndRetrieved ( )
ifAnObjectTypeIsSpecifiedTheIdentityRoutePartHandlerIsInstantiated ( )
matchesRecursivelyMergesMatchResults ( )
matchesThrowsExceptionIfRoutePartValueContainsObjects ( boolean $shouldThrowException, mixed $routePartValue )
matchesThrowsExceptionIfRoutePartValueContainsObjectsDataProvider ( ) Data provider
matchingRouteIsProperlyResolved ( )
parseSetsDefaultValueOfRouteParts ( )
parseSetsDefaultValueOfRoutePartsRecursively ( )
parseSetsUriPatternOfIdentityRoutePartIfSpecified ( )
registeredRoutePartHandlerIsInvokedWhenCallingMatch ( )
registeredRoutePartHandlerIsInvokedWhenCallingResolve ( )
resolvedUriPathIsNullAfterUnsuccessfulResolve ( )
resolvesAppendsDefaultValuesOfOptionalUriPartsToResolvedUriPath ( )
resolvesAppendsRemainingRouteValuesToResolvedUriPathIfAppendExceedingArgumentsIsTrue ( )
resolvesCallsCompareAndRemoveMatchingDefaultValues ( )
resolvesConvertsDomainObjectsToIdentityArrays ( )
resolvesKeepsCaseOfResolvedUriIfToLowerCaseIsFalse ( )
resolvesLowerCasesResolvedUriPathByDefault ( )
resolvesReturnsFalseIfNotAllRouteValuesCanBeResolved ( )
resolvesReturnsTrueIfTargetControllerExists ( )
resolvesThrowsExceptionIfRoutePartDefaultValueIsNoString ( )
resolvesThrowsExceptionIfRoutePartValueIsNoString ( )
routeAlwaysAppendsExceedingInternalArguments ( )
routeAlwaysAppendsExceedingInternalArgumentsRecursively ( )
routeAppendsAllAdditionalQueryParametersIfUriPatternContainsLessValuesThanAreSpecifiedIfAppendExceedingArgumentsIsTrue ( )
routeCanBeResolvedIfAComplexValueIsEqualToItsDefaultValue ( )
routeCanBeResolvedIfASpecifiedValueIsEqualToItsDefaultValue ( )
routeCantBeResolvedIfASpecifiedValueIsNotEqualToItsDefaultValue ( )
routeDoesNotMatchEmptyRequestPathIfUriPatternIsNotSet ( )
routeDoesNotMatchIfOneSegmentOfRequestPathIsDifferentFromItsRespectiveStaticUriPatternSegment ( )
routeDoesNotMatchIfRequestMethodIsNotAccepted ( )
routeDoesNotMatchIfRequestPathIsDifferentFromStaticUriPattern ( )
routeDoesNotMatchIfRequestPathIsEqualToStaticUriPatternWithoutSlashes ( )
routeDoesNotMatchIfRoutePartDoesNotMatchAndDefaultValueIsSet ( )
routeDoesNotMatchRequestPathContainingOnlySomeOfTheOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithAllPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternContainsTwoSuccessiveOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts ( )
routeDoesNotMatchRequestPathWithRequiredAndOnlyOneOptionalPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts ( )
routeDoesNotResolveIfRouteValuesContainAnIdentityForAnArgumentThatIsNotPartOfTheRoute ( )
routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalDynamicRoutePartWithDefaultValue ( )
routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalStaticRoutePart ( )
routeMatchesEmptyRequestPathIfUriPatternIsEmpty ( )
routeMatchesIfRequestMethodIsAccepted ( )
routeMatchesIfRequestPathIsEqualToStaticUriPattern ( )
routeMatchesIfRoutePartDoesNotMatchButIsOptionalAndHasDefault ( )
routeMatchesIfStaticSegmentsMatchAndASegmentExistsForAllDynamicUriPartSegments ( )
routeMatchesRequestPathContainingAllOfTheOptionalRouteParts ( )
routeMatchesRequestPathContainingNoneOfTheOptionalRouteParts ( )
routeMatchesRequestPathWithAllPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithAllPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneRequiredAndOneOptionalStaticRoutePart ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts ( )
routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts ( )
routePartHandlerIsInstantiated ( )
routeThrowsExceptionIfUriPatternContainsOneOptionalDynamicRoutePartWithoutDefaultValue ( )
setDefaultsAllowsToSetTheDefaultPackageControllerAndActionName ( )
setNameCorrectlySetsRouteName ( )
setUp ( ) Sets up this test case
settingInvalidRoutePartHandlerThrowsException ( )
settingUriPatternResetsRoute ( )
staticAndDynamicRoutesCanBeMixedInAnyOrder ( )
uriPatternSegmentCanContainTwoDynamicRouteParts ( )
uriPatternSegmentsCanContainMultipleDynamicRouteParts ( )
uriPatternWithLeadingSlashThrowsException ( )
uriPatternWithSuccessiveDynamicRoutepartsThrowsException ( )
uriPatternWithSuccessiveOptionalSectionsThrowsException ( )
uriPatternWithTrailingSlashThrowsException ( )
uriPatternWithUnopenedOptionalSectionsThrowsException ( )
uriPatternWithUnterminatedOptionalSectionsThrowsException ( )

보호된 메소드들

메소드 설명
routeMatchesPath ( string $routePath ) : boolean

메소드 상세

byDefaultRouteDoesNotResolveIfUriPatternContainsLessValuesThanAreSpecified() 공개 메소드

compareAndRemoveMatchingDefaultValuesDataProvider() 공개 메소드

Data provider

compareAndRemoveMatchingDefaultValuesTests() 공개 메소드

public compareAndRemoveMatchingDefaultValuesTests ( array $defaults, array $routeValues, array $expectedModifiedRouteValues, boolean $expectedResult )
$defaults array
$routeValues array
$expectedModifiedRouteValues array
$expectedResult boolean

defaultValuesAreSetForUriPatternSegmentsWithMultipleOptionalRouteParts() 공개 메소드

getMatchResultsReturnsCorrectResultsAfterSuccessfulMatch() 공개 메소드

httpMethodConstraintsCanBeSetAndRetrieved() 공개 메소드

ifAnObjectTypeIsSpecifiedTheIdentityRoutePartHandlerIsInstantiated() 공개 메소드

matchesRecursivelyMergesMatchResults() 공개 메소드

matchesThrowsExceptionIfRoutePartValueContainsObjects() 공개 메소드

public matchesThrowsExceptionIfRoutePartValueContainsObjects ( boolean $shouldThrowException, mixed $routePartValue )
$shouldThrowException boolean
$routePartValue mixed

matchesThrowsExceptionIfRoutePartValueContainsObjectsDataProvider() 공개 메소드

Data provider

matchingRouteIsProperlyResolved() 공개 메소드

parseSetsDefaultValueOfRouteParts() 공개 메소드

parseSetsDefaultValueOfRoutePartsRecursively() 공개 메소드

parseSetsUriPatternOfIdentityRoutePartIfSpecified() 공개 메소드

registeredRoutePartHandlerIsInvokedWhenCallingMatch() 공개 메소드

registeredRoutePartHandlerIsInvokedWhenCallingResolve() 공개 메소드

resolvedUriPathIsNullAfterUnsuccessfulResolve() 공개 메소드

resolvesAppendsDefaultValuesOfOptionalUriPartsToResolvedUriPath() 공개 메소드

resolvesAppendsRemainingRouteValuesToResolvedUriPathIfAppendExceedingArgumentsIsTrue() 공개 메소드

resolvesCallsCompareAndRemoveMatchingDefaultValues() 공개 메소드

resolvesConvertsDomainObjectsToIdentityArrays() 공개 메소드

resolvesKeepsCaseOfResolvedUriIfToLowerCaseIsFalse() 공개 메소드

resolvesLowerCasesResolvedUriPathByDefault() 공개 메소드

resolvesReturnsFalseIfNotAllRouteValuesCanBeResolved() 공개 메소드

resolvesReturnsTrueIfTargetControllerExists() 공개 메소드

resolvesThrowsExceptionIfRoutePartDefaultValueIsNoString() 공개 메소드

resolvesThrowsExceptionIfRoutePartValueIsNoString() 공개 메소드

routeAlwaysAppendsExceedingInternalArguments() 공개 메소드

routeAlwaysAppendsExceedingInternalArgumentsRecursively() 공개 메소드

routeAppendsAllAdditionalQueryParametersIfUriPatternContainsLessValuesThanAreSpecifiedIfAppendExceedingArgumentsIsTrue() 공개 메소드

routeCanBeResolvedIfAComplexValueIsEqualToItsDefaultValue() 공개 메소드

routeCanBeResolvedIfASpecifiedValueIsEqualToItsDefaultValue() 공개 메소드

routeCantBeResolvedIfASpecifiedValueIsNotEqualToItsDefaultValue() 공개 메소드

routeDoesNotMatchEmptyRequestPathIfUriPatternIsNotSet() 공개 메소드

routeDoesNotMatchIfOneSegmentOfRequestPathIsDifferentFromItsRespectiveStaticUriPatternSegment() 공개 메소드

routeDoesNotMatchIfRequestMethodIsNotAccepted() 공개 메소드

routeDoesNotMatchIfRequestPathIsDifferentFromStaticUriPattern() 공개 메소드

routeDoesNotMatchIfRequestPathIsEqualToStaticUriPatternWithoutSlashes() 공개 메소드

routeDoesNotMatchIfRoutePartDoesNotMatchAndDefaultValueIsSet() 공개 메소드

routeDoesNotMatchRequestPathContainingOnlySomeOfTheOptionalRouteParts() 공개 메소드

routeDoesNotMatchRequestPathWithAllPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts() 공개 메소드

routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternContainsTwoSuccessiveOptionalRouteParts() 공개 메소드

routeDoesNotMatchRequestPathWithOnlyOneOptionalPartIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts() 공개 메소드

routeDoesNotMatchRequestPathWithRequiredAndOnlyOneOptionalPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts() 공개 메소드

routeDoesNotResolveIfRouteValuesContainAnIdentityForAnArgumentThatIsNotPartOfTheRoute() 공개 메소드

routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalDynamicRoutePartWithDefaultValue() 공개 메소드

routeMatchesEmptyRequestPathIfUriPatternContainsOneOptionalStaticRoutePart() 공개 메소드

routeMatchesEmptyRequestPathIfUriPatternIsEmpty() 공개 메소드

routeMatchesIfRequestMethodIsAccepted() 공개 메소드

routeMatchesIfRequestPathIsEqualToStaticUriPattern() 공개 메소드

routeMatchesIfRoutePartDoesNotMatchButIsOptionalAndHasDefault() 공개 메소드

routeMatchesIfStaticSegmentsMatchAndASegmentExistsForAllDynamicUriPartSegments() 공개 메소드

routeMatchesPath() 보호된 메소드

protected routeMatchesPath ( string $routePath ) : boolean
$routePath string
리턴 boolean

routeMatchesRequestPathContainingAllOfTheOptionalRouteParts() 공개 메소드

routeMatchesRequestPathContainingNoneOfTheOptionalRouteParts() 공개 메소드

routeMatchesRequestPathWithAllPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart() 공개 메소드

routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart() 공개 메소드

routeMatchesRequestPathWithAllPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts() 공개 메소드

routeMatchesRequestPathWithAllPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts() 공개 메소드

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneOptionalAndOneRequiredStaticRoutePart() 공개 메소드

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsOneRequiredAndOneOptionalStaticRoutePart() 공개 메소드

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoOptionalAndOneRequiredStaticRoutePart() 공개 메소드

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternContainsTwoSuccessiveOptionalRouteParts() 공개 메소드

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternEndsWithTwoSuccessiveOptionalRouteParts() 공개 메소드

routeMatchesRequestPathWithOnlyRequiredPartsIfUriPatternStartsWithTwoSuccessiveOptionalRouteParts() 공개 메소드

routePartHandlerIsInstantiated() 공개 메소드

routeThrowsExceptionIfUriPatternContainsOneOptionalDynamicRoutePartWithoutDefaultValue() 공개 메소드

setDefaultsAllowsToSetTheDefaultPackageControllerAndActionName() 공개 메소드

setNameCorrectlySetsRouteName() 공개 메소드

setUp() 공개 메소드

Sets up this test case
public setUp ( )

settingInvalidRoutePartHandlerThrowsException() 공개 메소드

settingUriPatternResetsRoute() 공개 메소드

staticAndDynamicRoutesCanBeMixedInAnyOrder() 공개 메소드

uriPatternSegmentCanContainTwoDynamicRouteParts() 공개 메소드

uriPatternSegmentsCanContainMultipleDynamicRouteParts() 공개 메소드

uriPatternWithLeadingSlashThrowsException() 공개 메소드

uriPatternWithSuccessiveDynamicRoutepartsThrowsException() 공개 메소드

uriPatternWithSuccessiveOptionalSectionsThrowsException() 공개 메소드

uriPatternWithTrailingSlashThrowsException() 공개 메소드

uriPatternWithUnopenedOptionalSectionsThrowsException() 공개 메소드

uriPatternWithUnterminatedOptionalSectionsThrowsException() 공개 메소드

프로퍼티 상세

$mockObjectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement|PHPUnit_Framework_MockObject_MockObject $mockObjectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface | PHPUnit_Framework_MockObject_MockObject

$mockPersistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence|PHPUnit_Framework_MockObject_MockObject $mockPersistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface | PHPUnit_Framework_MockObject_MockObject

$route 보호되어 있는 프로퍼티

protected Route,Neos\Flow\Mvc\Routing $route
리턴 Neos\Flow\Mvc\Routing\Route

$routeValues 보호되어 있는 프로퍼티

protected array $routeValues
리턴 array