PHP Class lithium\tests\cases\g11n\LocaleTest

Inheritance: extends lithium\test\Unit
Datei anzeigen Open project: unionofrad/lithium

Public Methods

Method Description
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 ( )

Method Details

testCanonicalize() public method

Tests formatting of locale.
public testCanonicalize ( )

testCascade() public method

Tests cascading of locales.
public testCascade ( )

testCompose() public method

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

testComposeDecomposeCompose() public method

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

testDecomposeFail() public method

Tests failing of parsing invalid locales.
public testDecomposeFail ( )

testDecomposeLoose() public method

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

testDecomposeStrict() public method

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

testDecomposeUsingShortcutMethods() public method

Tests parsing of locales using shortcut methods.

testLookup() public method

public testLookup ( )

testPreferredAvailableNegotiation() public method

testPreferredEmpty() public method

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

testPreferredFromActionRequest() public method

testPreferredFromConsoleRequestEmptyLocales() public method

testPreferredFromConsoleRequestLang() public method

testPreferredFromConsoleRequestLanguage() public method

testPreferredFromConsoleRequestLcAll() public method

testPreferredFromConsoleRequestPrecedence() public method

testPreferredMalformedContainingChrome() public method

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

testPreferredMalformedSpanish() public method

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() public method

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

testPreferredStarWithQ() public method

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

testRespondsToMagic() public method

public testRespondsToMagic ( )

testRespondsToParentCall() public method