PHP 클래스 lithium\tests\cases\net\http\RouteTest

상속: extends lithium\test\Unit
파일 보기 프로젝트 열기: unionofrad/lithium

공개 메소드들

메소드 설명
testBaseRouteMatching ( ) Tests the creation of routes for the base URL (i.e. '/'), and that they are matched properly given the correct parameters.
testBaseRouteParsing ( ) Tests that a request for the base URL (i.e. '/') returns the proper parameters, as defined by the base route.
testContinuationRoute ( )
testContinuationRouteWithParameters ( )
testContinuationRouteWithQueryString ( ) Tests that continuation routes don't append query strings.
testCustomSubPattern ( ) Tests creating a route with a custom regex sub-pattern in a template.
testCustomSubPatternWithTrailing ( ) Tests creating a route with a custom sub-pattern and trailing route
testDefaultsAreKept ( ) Tests that routes with defaults keep their defaults, even when there are keys in the route template.
testHandlerModification ( ) Tests that route handlers are able to modify route parameters.
testHeaderAndMethodBasedRouting ( ) Tests that requests can be routed based on HTTP method verbs or HTTP headers.
testManualRouteDefinition ( ) Tests that routes can be composed of manual regular expressions.
testMatchWithNoRequestMethod ( ) Test route matching for routes with no request method (http:method)
testMatchWithRequestMethod ( ) Test route matching for routes with specified request method (http:method)
testMatchWithRequestMethodGet ( ) Test route matching for routes with request method (http:method) GET
testMatchWithRequestMethodWithParam ( ) Test route matching for routes with specified request method (http:method) and a param
testMatchingEmptyRoute ( ) Tests that a successful match against a route with template '/' operating at the root of a domain never returns an empty string.
testPatternsWithRepetition ( ) Tests that route templates with elements containing repetition patterns are correctly parsed.
testReversingRegexRoutes ( )
testRouteExporting ( ) Tests exporting a the details of a compiled route to an array.
testRouteMatchParseSymmetryWithRootTrimming ( )
testRouteMatchParseSymmetryWithoutTrimming ( )
testRouteMatchingWithEmptyTrailingParams ( )
testRouteMatchingWithOptionalParam ( )
testRouteParsingWithOptionalParam ( )
testRouteParsingWithOptionalParams ( )
testRouteParsingWithOptionalParamsAndType ( )
testRouteParsingWithParamsEqualsToZero ( )
testRouteParsingWithRegexAction ( )
testRouteParsingWithRegexActionAndParamWithAction ( )
testRouteParsingWithRegexActionAndParamWithoutAction ( )
testRoutesWithQueryStrings ( ) Tests that routes with querystrings are correctly processed.
testRoutingMultipleMatch ( ) Tests creating a route with a custom pattern that accepts URLs in two formats but only generates them in one.
testSimpleRouteMatching ( ) Tests that simple routes with only a {:controller} parameter are properly matched, and anything including extra parameters or an action other than the default action are ignored.
testSimpleRouteParsing ( ) Tests that requests for base-level resource URLs (i.e. '/posts') are properly parsed into the correct controller and action parameters.
testSingleRouteWithDefaultValues ( ) Tests that a single route with default values matches its default parameters, as well as non-default parameters.
testStaticRouteMatching ( )
testTrimmingEmptyPathElements ( ) Tests that routes with optional trailing elements have unnecessary slashes trimmed.
testTwoParameterRoutes ( ) Tests fix for route parameter matching.
testUnicodeParameters ( ) Tests that routes with Unicode characters are correctly parsed.
testUrlEncodedArgs ( )
testValidPatternGeneration ( ) Tests correct regex backtracking.

메소드 상세

testBaseRouteMatching() 공개 메소드

Tests the creation of routes for the base URL (i.e. '/'), and that they are matched properly given the correct parameters.

testBaseRouteParsing() 공개 메소드

Tests that a request for the base URL (i.e. '/') returns the proper parameters, as defined by the base route.

testContinuationRoute() 공개 메소드

testContinuationRouteWithParameters() 공개 메소드

testContinuationRouteWithQueryString() 공개 메소드

Tests that continuation routes don't append query strings.

testCustomSubPattern() 공개 메소드

Tests creating a route with a custom regex sub-pattern in a template.

testCustomSubPatternWithTrailing() 공개 메소드

Tests creating a route with a custom sub-pattern and trailing route

testDefaultsAreKept() 공개 메소드

Tests that routes with defaults keep their defaults, even when there are keys in the route template.
public testDefaultsAreKept ( )

testHandlerModification() 공개 메소드

Tests that route handlers are able to modify route parameters.

testHeaderAndMethodBasedRouting() 공개 메소드

Tests that requests can be routed based on HTTP method verbs or HTTP headers.

testManualRouteDefinition() 공개 메소드

Tests that routes can be composed of manual regular expressions.

testMatchWithNoRequestMethod() 공개 메소드

Test route matching for routes with no request method (http:method)

testMatchWithRequestMethod() 공개 메소드

Test route matching for routes with specified request method (http:method)

testMatchWithRequestMethodGet() 공개 메소드

Test route matching for routes with request method (http:method) GET

testMatchWithRequestMethodWithParam() 공개 메소드

Test route matching for routes with specified request method (http:method) and a param

testMatchingEmptyRoute() 공개 메소드

Tests that a successful match against a route with template '/' operating at the root of a domain never returns an empty string.

testPatternsWithRepetition() 공개 메소드

Tests that route templates with elements containing repetition patterns are correctly parsed.

testReversingRegexRoutes() 공개 메소드

testRouteExporting() 공개 메소드

Tests exporting a the details of a compiled route to an array.
public testRouteExporting ( )

testRouteMatchParseSymmetryWithRootTrimming() 공개 메소드

testRouteMatchParseSymmetryWithoutTrimming() 공개 메소드

testRouteMatchingWithEmptyTrailingParams() 공개 메소드

testRouteMatchingWithOptionalParam() 공개 메소드

testRouteParsingWithOptionalParam() 공개 메소드

testRouteParsingWithOptionalParams() 공개 메소드

testRouteParsingWithOptionalParamsAndType() 공개 메소드

testRouteParsingWithParamsEqualsToZero() 공개 메소드

testRouteParsingWithRegexAction() 공개 메소드

testRouteParsingWithRegexActionAndParamWithAction() 공개 메소드

testRouteParsingWithRegexActionAndParamWithoutAction() 공개 메소드

testRoutesWithQueryStrings() 공개 메소드

Tests that routes with querystrings are correctly processed.

testRoutingMultipleMatch() 공개 메소드

Tests creating a route with a custom pattern that accepts URLs in two formats but only generates them in one.

testSimpleRouteMatching() 공개 메소드

Tests that simple routes with only a {:controller} parameter are properly matched, and anything including extra parameters or an action other than the default action are ignored.

testSimpleRouteParsing() 공개 메소드

Tests that requests for base-level resource URLs (i.e. '/posts') are properly parsed into the correct controller and action parameters.

testSingleRouteWithDefaultValues() 공개 메소드

Tests that a single route with default values matches its default parameters, as well as non-default parameters.

testStaticRouteMatching() 공개 메소드

testTrimmingEmptyPathElements() 공개 메소드

Tests that routes with optional trailing elements have unnecessary slashes trimmed.

testTwoParameterRoutes() 공개 메소드

Tests fix for route parameter matching.

testUnicodeParameters() 공개 메소드

Tests that routes with Unicode characters are correctly parsed.

testUrlEncodedArgs() 공개 메소드

public testUrlEncodedArgs ( )

testValidPatternGeneration() 공개 메소드

Tests correct regex backtracking.