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

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

공개 프로퍼티들

프로퍼티 타입 설명
$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