PHP Класс lithium\tests\cases\g11n\LocaleTest

Наследование: extends lithium\test\Unit
Показать файл Открыть проект

Открытые методы

Метод Описание
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() публичный Метод