PHP Класс lithium\tests\cases\net\http\RouteTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Открытые методы

Метод Описание
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.