PHP 클래스 lithium\tests\cases\g11n\LocaleTest

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

공개 메소드들

메소드 설명
testCanonicalize ( ) Tests formatting of locale.
testCascade ( ) Tests cascading of locales.
testCompose ( ) Tests composing of a locale from tags.
testComposeDecomposeCompose ( ) Tests if the ouput of compose() can be used as the input for decompose() and vice versa.
testDecomposeFail ( ) Tests failing of parsing invalid locales.
testDecomposeLoose ( ) Tests parsing of locales formatted loosely according to the definition of the unicode locale identifier.
testDecomposeStrict ( ) Tests parsing of locales formatted strictly according to the definition of the unicode locale identifier.
testDecomposeUsingShortcutMethods ( ) Tests parsing of locales using shortcut methods.
testLookup ( )
testPreferredAvailableNegotiation ( )
testPreferredEmpty ( ) When the Accept-Language is empty, it should return null.
testPreferredFromActionRequest ( )
testPreferredFromConsoleRequestEmptyLocales ( )
testPreferredFromConsoleRequestLang ( )
testPreferredFromConsoleRequestLanguage ( )
testPreferredFromConsoleRequestLcAll ( )
testPreferredFromConsoleRequestPrecedence ( )
testPreferredMalformedContainingChrome ( ) A random Firefox 4 sent us this Accept-Language header which is malformed.
testPreferredMalformedSpanish ( ) An Accept-Language coming from a Chrome user which contains an invalid item es-419 causing preferred to fail with an exception while it should ignored.
testPreferredMalformedSquid ( ) A very strange Accept-Language which might be coming from a proxy, this rule x-ns… must be ignored.
testPreferredStarWithQ ( ) When the Accept-Language contains *;q=0.01 it's been seen as q and raises an exception.
testRespondsToMagic ( )
testRespondsToParentCall ( )

메소드 상세

testCanonicalize() 공개 메소드

Tests formatting of locale.
public testCanonicalize ( )

testCascade() 공개 메소드

Tests cascading of locales.
public testCascade ( )

testCompose() 공개 메소드

Tests composing of a locale from tags.
public testCompose ( )

testComposeDecomposeCompose() 공개 메소드

Tests if the ouput of compose() can be used as the input for decompose() and vice versa.

testDecomposeFail() 공개 메소드

Tests failing of parsing invalid locales.
public testDecomposeFail ( )

testDecomposeLoose() 공개 메소드

Tests parsing of locales formatted loosely according to the definition of the unicode locale identifier.
public testDecomposeLoose ( )

testDecomposeStrict() 공개 메소드

Tests parsing of locales formatted strictly according to the definition of the unicode locale identifier.
public testDecomposeStrict ( )

testDecomposeUsingShortcutMethods() 공개 메소드

Tests parsing of locales using shortcut methods.

testLookup() 공개 메소드

public testLookup ( )

testPreferredAvailableNegotiation() 공개 메소드

testPreferredEmpty() 공개 메소드

When the Accept-Language is empty, it should return null.
public testPreferredEmpty ( )

testPreferredFromActionRequest() 공개 메소드

testPreferredFromConsoleRequestEmptyLocales() 공개 메소드

testPreferredFromConsoleRequestLang() 공개 메소드

testPreferredFromConsoleRequestLanguage() 공개 메소드

testPreferredFromConsoleRequestLcAll() 공개 메소드

testPreferredFromConsoleRequestPrecedence() 공개 메소드

testPreferredMalformedContainingChrome() 공개 메소드

A random Firefox 4 sent us this Accept-Language header which is malformed.

testPreferredMalformedSpanish() 공개 메소드

An Accept-Language coming from a Chrome user which contains an invalid item es-419 causing preferred to fail with an exception while it should ignored.

testPreferredMalformedSquid() 공개 메소드

A very strange Accept-Language which might be coming from a proxy, this rule x-ns… must be ignored.

testPreferredStarWithQ() 공개 메소드

When the Accept-Language contains *;q=0.01 it's been seen as q and raises an exception.

testRespondsToMagic() 공개 메소드

public testRespondsToMagic ( )

testRespondsToParentCall() 공개 메소드