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

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

Открытые свойства

Свойство Тип Описание
$request

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

Метод Описание
setUp ( )
tearDown ( )
testActionWithProcess ( )
testAttachAbsolute ( )
testAttachAbsoluteWithHttps ( )
testBasicRouteConnection ( )
testBasicRouteMatching ( ) Tests basic options for connecting routes.
testCompileScopeAbsolute ( )
testCompileScopeAbsoluteWithPrefix ( )
testCompileScopeAbsoluteWithVariables ( )
testConnectingWithDefaultParams ( )
testConnectingWithRequiredParams ( ) Tests generating routes with required parameters which are not present in the URL.
testCustomConfiguration ( ) Tests that the class dependency configuration can be modified.
testEmbeddedStringActions ( ) Tests that URLs specified as "Controller::action" and including additional parameters are interpreted properly.
testEmptyUrlMatching ( )
testHttpMethodBasedRouting ( ) Tests that routes can be connected and correctly match based on HTTP headers or method verbs.
testJavaScriptUrlGeneration ( )
testLibraryBasedRoute ( )
testListAttached ( )
testMatchOverRequestParamsWithScope ( )
testMatchWithAbsoluteAndNoSchemeAttachment ( )
testMatchWithAbsoluteAndPrefixedAttachment ( )
testMatchWithAbsoluteAndPrefixedAttachmentUsingBasedRequest ( )
testMatchWithAbsoluteAttachmentAndVariables ( )
testMatchWithAbsoluteAttachmentUsingDoubleColonNotation ( )
testMatchWithAbsoluteScope ( )
testMatchWithAttachementPopulatedFromRequest ( )
testMatchWithNoRouteDefined ( )
testMatchWithRelativeAndPrefixedAttachment ( )
testMatchWithRelativeAndPrefixedAttachmentUsingBasedRequest ( )
testMatchWithScopeAndWithoutController ( )
testMatchingEmptyRoute ( ) Tests that a successful match against a route with template '/' operating at the root of a domain never returns an empty string.
testNamedAnchor ( )
testOverridingPersistentParameters ( ) Tests that persistent parameters can be overridden with nulled-out values.
testParameterOrderIsRespected ( ) Tests that the order of the parameters is respected so it can trim the URL correctly.
testParameterPersistence ( ) Tests that a request context with persistent parameters generates URLs where those parameters are properly taken into account.
testParseScopeWithAbsoluteAndPrefixAttachment ( )
testParseScopeWithAbsoluteAndPrefixAttachmentUsingEnvRequest ( )
testParseScopeWithAbsoluteAndPrefixedAttachment ( )
testParseScopeWithAbsoluteAttachment ( )
testParseScopeWithAbsoluteAttachmentUsingVariables ( )
testParseScopeWithRelativeAndPrefixAttachmentUsingEnvRequest ( )
testParseScopeWithRelativeAndPrefixedAttachment ( )
testParseScopeWithRelativeAttachment ( )
testParseWithNotValidSchemeVariable ( )
testProcess ( )
testProcessWithAbsoluteAndPrefixedAttachment ( )
testProcessWithAbsoluteAttachment ( )
testProcessWithAbsoluteAttachmentAndLibrary ( )
testProcessWithAbsoluteAttachmentAndVariables ( )
testProcessWithAbsoluteHttpsAttachment ( )
testProcessWithRelativeAndPrefixedAttachment ( )
testQueryString ( )
testResettingRoutes ( ) Tests that routing is fully reset when calling Router::reset().
testReversingContinuations ( ) Tests that URLs are properly generated with route continuations.
testRouteContinuations ( ) Tests that continuation routes properly fall through and aggregate multiple route parameters.
testRouteContinuationsOnRootUrl ( )
testRouteContinuationsWithQueryString ( )
testRouteFormatters ( ) Tests default route formatters, and setting/getting new formatters.
testRouteFormattersAppliedOnMatch ( )
testRouteHandler ( ) Tests passing a closure handler to Router::connect() to bypass or augment default dispatching.
testRouteMatchAbsoluteUrl ( ) Tests matching routes and returning an absolute (protocol + hostname) URL.
testRouteMatchingWithDefaultParameters ( )
testRouteMatchingWithInsertsAndDefaults ( ) Test matching routes with insert parameters which have default values.
testRouteMatchingWithNoInserts ( ) Tests matching routes where the route template is a static string with no insert parameters.
testRouteMatchingWithOnlyInserts ( ) Test matching routes with only insert parameters and no default values.
testRouteModifiers ( )
testRouteRetrieval ( ) Tests getting routes using Router::get(), and checking to see if the routes returned match the routes connected.
testRouteRetrievalWithScope ( )
testScopeBase ( )
testShorthandParameterMatching ( )
testStackedContinuationRoutes ( ) Tests that multiple continuation routes can be applied to the same URL.
testStringActions ( ) Tests that URLs specified as "Controller::action" are interpreted properly.
testStringParameterConnect ( ) Tests that routes can be created with shorthand strings, i.e. 'Controller::action' and `array('Controller::action', 'id' => '.
testStringUrlGeneration ( )
testSuffixContinuation ( ) Tests that continuations can be used for route suffixes.
testTypeBasedRouting ( ) Tests routing based on content type extensions, with HTML being the default when types are not defined.
testUnexistingScopedRoute ( )
testWithWildcardArray ( )
testWithWildcardString ( )

Описание методов

setUp() публичный Метод

public setUp ( )

tearDown() публичный Метод

public tearDown ( )

testActionWithProcess() публичный Метод

testAttachAbsolute() публичный Метод

public testAttachAbsolute ( )

testAttachAbsoluteWithHttps() публичный Метод

testBasicRouteConnection() публичный Метод

testBasicRouteMatching() публичный Метод

Tests basic options for connecting routes.

testCompileScopeAbsolute() публичный Метод

testCompileScopeAbsoluteWithPrefix() публичный Метод

testCompileScopeAbsoluteWithVariables() публичный Метод

testConnectingWithDefaultParams() публичный Метод

testConnectingWithRequiredParams() публичный Метод

Tests generating routes with required parameters which are not present in the URL.

testCustomConfiguration() публичный Метод

Tests that the class dependency configuration can be modified.

testEmbeddedStringActions() публичный Метод

Tests that URLs specified as "Controller::action" and including additional parameters are interpreted properly.

testEmptyUrlMatching() публичный Метод

testHttpMethodBasedRouting() публичный Метод

Tests that routes can be connected and correctly match based on HTTP headers or method verbs.

testJavaScriptUrlGeneration() публичный Метод

testLibraryBasedRoute() публичный Метод

testListAttached() публичный Метод

public testListAttached ( )

testMatchOverRequestParamsWithScope() публичный Метод

testMatchWithAbsoluteAndNoSchemeAttachment() публичный Метод

testMatchWithAbsoluteAndPrefixedAttachment() публичный Метод

testMatchWithAbsoluteAndPrefixedAttachmentUsingBasedRequest() публичный Метод

testMatchWithAbsoluteAttachmentAndVariables() публичный Метод

testMatchWithAbsoluteAttachmentUsingDoubleColonNotation() публичный Метод

testMatchWithAbsoluteScope() публичный Метод

testMatchWithAttachementPopulatedFromRequest() публичный Метод

testMatchWithNoRouteDefined() публичный Метод

testMatchWithRelativeAndPrefixedAttachment() публичный Метод

testMatchWithRelativeAndPrefixedAttachmentUsingBasedRequest() публичный Метод

testMatchWithScopeAndWithoutController() публичный Метод

testMatchingEmptyRoute() публичный Метод

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

testNamedAnchor() публичный Метод

public testNamedAnchor ( )

testOverridingPersistentParameters() публичный Метод

Tests that persistent parameters can be overridden with nulled-out values.

testParameterOrderIsRespected() публичный Метод

Tests that the order of the parameters is respected so it can trim the URL correctly.

testParameterPersistence() публичный Метод

Tests that a request context with persistent parameters generates URLs where those parameters are properly taken into account.

testParseScopeWithAbsoluteAndPrefixAttachment() публичный Метод

testParseScopeWithAbsoluteAndPrefixAttachmentUsingEnvRequest() публичный Метод

testParseScopeWithAbsoluteAndPrefixedAttachment() публичный Метод

testParseScopeWithAbsoluteAttachment() публичный Метод

testParseScopeWithAbsoluteAttachmentUsingVariables() публичный Метод

testParseScopeWithRelativeAndPrefixAttachmentUsingEnvRequest() публичный Метод

testParseScopeWithRelativeAndPrefixedAttachment() публичный Метод

testParseScopeWithRelativeAttachment() публичный Метод

testParseWithNotValidSchemeVariable() публичный Метод

testProcess() публичный Метод

public testProcess ( )

testProcessWithAbsoluteAndPrefixedAttachment() публичный Метод

testProcessWithAbsoluteAttachment() публичный Метод

testProcessWithAbsoluteAttachmentAndLibrary() публичный Метод

testProcessWithAbsoluteAttachmentAndVariables() публичный Метод

testProcessWithAbsoluteHttpsAttachment() публичный Метод

testProcessWithRelativeAndPrefixedAttachment() публичный Метод

testQueryString() публичный Метод

public testQueryString ( )

testResettingRoutes() публичный Метод

Tests that routing is fully reset when calling Router::reset().
public testResettingRoutes ( )

testReversingContinuations() публичный Метод

Tests that URLs are properly generated with route continuations.

testRouteContinuations() публичный Метод

Tests that continuation routes properly fall through and aggregate multiple route parameters.

testRouteContinuationsOnRootUrl() публичный Метод

testRouteContinuationsWithQueryString() публичный Метод

testRouteFormatters() публичный Метод

Tests default route formatters, and setting/getting new formatters.
public testRouteFormatters ( )

testRouteFormattersAppliedOnMatch() публичный Метод

testRouteHandler() публичный Метод

Tests passing a closure handler to Router::connect() to bypass or augment default dispatching.
public testRouteHandler ( )

testRouteMatchAbsoluteUrl() публичный Метод

Tests matching routes and returning an absolute (protocol + hostname) URL.

testRouteMatchingWithDefaultParameters() публичный Метод

testRouteMatchingWithInsertsAndDefaults() публичный Метод

Test matching routes with insert parameters which have default values.

testRouteMatchingWithNoInserts() публичный Метод

Tests matching routes where the route template is a static string with no insert parameters.

testRouteMatchingWithOnlyInserts() публичный Метод

Test matching routes with only insert parameters and no default values.

testRouteModifiers() публичный Метод

public testRouteModifiers ( )

testRouteRetrieval() публичный Метод

Tests getting routes using Router::get(), and checking to see if the routes returned match the routes connected.
public testRouteRetrieval ( )

testRouteRetrievalWithScope() публичный Метод

testScopeBase() публичный Метод

public testScopeBase ( )

testShorthandParameterMatching() публичный Метод

testStackedContinuationRoutes() публичный Метод

Tests that multiple continuation routes can be applied to the same URL.

testStringActions() публичный Метод

Tests that URLs specified as "Controller::action" are interpreted properly.
public testStringActions ( )

testStringParameterConnect() публичный Метод

..')`.

testStringUrlGeneration() публичный Метод

testSuffixContinuation() публичный Метод

Tests that continuations can be used for route suffixes.

testTypeBasedRouting() публичный Метод

Tests routing based on content type extensions, with HTML being the default when types are not defined.

testUnexistingScopedRoute() публичный Метод

testWithWildcardArray() публичный Метод

testWithWildcardString() публичный Метод

Описание свойств

$request публичное свойство

public $request