PHP Class lithium\tests\cases\g11n\LocaleTest

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

Méthodes publiques

Méthode 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 méthode

Tests formatting of locale.
public testCanonicalize ( )

testCascade() public méthode

Tests cascading of locales.
public testCascade ( )

testCompose() public méthode

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

testComposeDecomposeCompose() public méthode

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

testDecomposeFail() public méthode

Tests failing of parsing invalid locales.
public testDecomposeFail ( )

testDecomposeLoose() public méthode

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

testDecomposeStrict() public méthode

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

testDecomposeUsingShortcutMethods() public méthode

Tests parsing of locales using shortcut methods.

testLookup() public méthode

public testLookup ( )

testPreferredAvailableNegotiation() public méthode

testPreferredEmpty() public méthode

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

testPreferredFromActionRequest() public méthode

testPreferredFromConsoleRequestEmptyLocales() public méthode

testPreferredFromConsoleRequestLang() public méthode

testPreferredFromConsoleRequestLanguage() public méthode

testPreferredFromConsoleRequestLcAll() public méthode

testPreferredFromConsoleRequestPrecedence() public méthode

testPreferredMalformedContainingChrome() public méthode

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

testPreferredMalformedSpanish() public méthode

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 méthode

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

testPreferredStarWithQ() public méthode

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

testRespondsToMagic() public méthode

public testRespondsToMagic ( )

testRespondsToParentCall() public méthode