PHP Class lithium\tests\cases\net\http\RouterTest

Inheritance: extends lithium\test\Unit
Afficher le fichier Open project: unionofrad/lithium

Méthodes publiques

Свойство Type Description
$request

Méthodes publiques

Méthode Description
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 ( )

Method Details

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testActionWithProcess() public méthode

testAttachAbsolute() public méthode

public testAttachAbsolute ( )

testAttachAbsoluteWithHttps() public méthode

testBasicRouteConnection() public méthode

testBasicRouteMatching() public méthode

Tests basic options for connecting routes.

testCompileScopeAbsolute() public méthode

testCompileScopeAbsoluteWithPrefix() public méthode

testCompileScopeAbsoluteWithVariables() public méthode

testConnectingWithDefaultParams() public méthode

testConnectingWithRequiredParams() public méthode

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

testCustomConfiguration() public méthode

Tests that the class dependency configuration can be modified.

testEmbeddedStringActions() public méthode

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

testEmptyUrlMatching() public méthode

testHttpMethodBasedRouting() public méthode

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

testJavaScriptUrlGeneration() public méthode

testLibraryBasedRoute() public méthode

testListAttached() public méthode

public testListAttached ( )

testMatchOverRequestParamsWithScope() public méthode

testMatchWithAbsoluteAndNoSchemeAttachment() public méthode

testMatchWithAbsoluteAndPrefixedAttachment() public méthode

testMatchWithAbsoluteAndPrefixedAttachmentUsingBasedRequest() public méthode

testMatchWithAbsoluteAttachmentAndVariables() public méthode

testMatchWithAbsoluteAttachmentUsingDoubleColonNotation() public méthode

testMatchWithAbsoluteScope() public méthode

testMatchWithAttachementPopulatedFromRequest() public méthode

testMatchWithNoRouteDefined() public méthode

testMatchWithRelativeAndPrefixedAttachment() public méthode

testMatchWithRelativeAndPrefixedAttachmentUsingBasedRequest() public méthode

testMatchWithScopeAndWithoutController() public méthode

testMatchingEmptyRoute() public méthode

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

testNamedAnchor() public méthode

public testNamedAnchor ( )

testOverridingPersistentParameters() public méthode

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

testParameterOrderIsRespected() public méthode

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

testParameterPersistence() public méthode

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

testParseScopeWithAbsoluteAndPrefixAttachment() public méthode

testParseScopeWithAbsoluteAndPrefixAttachmentUsingEnvRequest() public méthode

testParseScopeWithAbsoluteAndPrefixedAttachment() public méthode

testParseScopeWithAbsoluteAttachment() public méthode

testParseScopeWithAbsoluteAttachmentUsingVariables() public méthode

testParseScopeWithRelativeAndPrefixAttachmentUsingEnvRequest() public méthode

testParseScopeWithRelativeAndPrefixedAttachment() public méthode

testParseScopeWithRelativeAttachment() public méthode

testParseWithNotValidSchemeVariable() public méthode

testProcess() public méthode

public testProcess ( )

testProcessWithAbsoluteAndPrefixedAttachment() public méthode

testProcessWithAbsoluteAttachment() public méthode

testProcessWithAbsoluteAttachmentAndLibrary() public méthode

testProcessWithAbsoluteAttachmentAndVariables() public méthode

testProcessWithAbsoluteHttpsAttachment() public méthode

testProcessWithRelativeAndPrefixedAttachment() public méthode

testQueryString() public méthode

public testQueryString ( )

testResettingRoutes() public méthode

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

testReversingContinuations() public méthode

Tests that URLs are properly generated with route continuations.

testRouteContinuations() public méthode

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

testRouteContinuationsOnRootUrl() public méthode

testRouteContinuationsWithQueryString() public méthode

testRouteFormatters() public méthode

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

testRouteFormattersAppliedOnMatch() public méthode

testRouteHandler() public méthode

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

testRouteMatchAbsoluteUrl() public méthode

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

testRouteMatchingWithDefaultParameters() public méthode

testRouteMatchingWithInsertsAndDefaults() public méthode

Test matching routes with insert parameters which have default values.

testRouteMatchingWithNoInserts() public méthode

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

testRouteMatchingWithOnlyInserts() public méthode

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

testRouteModifiers() public méthode

public testRouteModifiers ( )

testRouteRetrieval() public méthode

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

testRouteRetrievalWithScope() public méthode

testScopeBase() public méthode

public testScopeBase ( )

testShorthandParameterMatching() public méthode

testStackedContinuationRoutes() public méthode

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

testStringActions() public méthode

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

testStringParameterConnect() public méthode

..')`.

testStringUrlGeneration() public méthode

testSuffixContinuation() public méthode

Tests that continuations can be used for route suffixes.

testTypeBasedRouting() public méthode

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

testUnexistingScopedRoute() public méthode

testWithWildcardArray() public méthode

testWithWildcardString() public méthode

Property Details

$request public_oe property

public $request