PHP 클래스 RouterTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: mikecao/flight 1 사용 예제들

공개 메소드들

메소드 설명
check ( $str = '' ) Checks if a route was matched with a given output
ok ( ) Simple output
routeRequest ( )
setUp ( )
testCaseSensitivity ( ) Test case sensitivity
testDefaultRoute ( ) Default route
testGetPostRoute ( ) Either GET or POST route
testNotFound ( ) Test not found
testOptionalParameters ( ) Optional parameters
testPathRoute ( ) Simple path
testPostRoute ( ) POST route
testRegEx ( ) Test regular expression matching
testRegExParameters ( ) Passing URL parameters matched with regular expression
testRegexEmptyOptionalParameters ( ) Regex in optional parameters
testRegexOptionalParameters ( ) Regex in optional parameters
testRouteObjectPassing ( ) Check if route object was passed
testRouteWithParameters ( )
testSplatNamedPlusWildcard ( ) Test splat with named parameters
testSplatWildcard ( ) Test splat
testSplatWildcardTrailingSlash ( ) Test splat without trailing slash
testUrlParameters ( ) Passing URL parameters
testWildcard ( ) Wildcard matching

메소드 상세

check() 공개 메소드

Checks if a route was matched with a given output
public check ( $str = '' )

ok() 공개 메소드

Simple output
public ok ( )

routeRequest() 공개 메소드

public routeRequest ( )

setUp() 공개 메소드

public setUp ( )

testCaseSensitivity() 공개 메소드

Test case sensitivity
public testCaseSensitivity ( )

testDefaultRoute() 공개 메소드

Default route
public testDefaultRoute ( )

testGetPostRoute() 공개 메소드

Either GET or POST route
public testGetPostRoute ( )

testNotFound() 공개 메소드

Test not found
public testNotFound ( )

testOptionalParameters() 공개 메소드

Optional parameters

testPathRoute() 공개 메소드

Simple path
public testPathRoute ( )

testPostRoute() 공개 메소드

POST route
public testPostRoute ( )

testRegEx() 공개 메소드

Test regular expression matching
public testRegEx ( )

testRegExParameters() 공개 메소드

Passing URL parameters matched with regular expression
public testRegExParameters ( )

testRegexEmptyOptionalParameters() 공개 메소드

Regex in optional parameters

testRegexOptionalParameters() 공개 메소드

Regex in optional parameters

testRouteObjectPassing() 공개 메소드

Check if route object was passed

testRouteWithParameters() 공개 메소드

testSplatNamedPlusWildcard() 공개 메소드

Test splat with named parameters

testSplatWildcard() 공개 메소드

Test splat
public testSplatWildcard ( )

testSplatWildcardTrailingSlash() 공개 메소드

Test splat without trailing slash

testUrlParameters() 공개 메소드

Passing URL parameters
public testUrlParameters ( )

testWildcard() 공개 메소드

Wildcard matching
public testWildcard ( )