PHP Класс Neos\Flow\Tests\Unit\I18n\UtilityTest

Наследование: extends Neos\Flow\Tests\UnitTestCase
Показать файл Открыть проект

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

Метод Описание
filenamesWithLocale ( ) : array Data provider with filenames with locale tags and expected results.
httpAcceptLanguageHeadersAreParsedCorrectly ( $acceptLanguageHeader, array $expectedResult )
localeIdentifiersAreCorrectlyExtractedFromFilename ( $filename, $expectedResult )
sampleHaystackStringsAndNeedleStrings ( ) : array Data provider with haystack strings and needle strings, used to test comparison methods. The third argument denotes whether needle is same as beginning of the haystack, or it's ending, or both or none.
sampleHttpAcceptLanguageHeaders ( ) : array Data provider with valid Accept-Language headers and expected results.
stringIsFoundAtBeginningOfAnotherString ( $haystack, $needle, $comparison )
stringIsFoundAtEndingOfAnotherString ( $haystack, $needle, $comparison )

Описание методов

filenamesWithLocale() публичный Метод

Data provider with filenames with locale tags and expected results.
public filenamesWithLocale ( ) : array
Результат array

httpAcceptLanguageHeadersAreParsedCorrectly() публичный Метод

public httpAcceptLanguageHeadersAreParsedCorrectly ( $acceptLanguageHeader, array $expectedResult )
$expectedResult array

localeIdentifiersAreCorrectlyExtractedFromFilename() публичный Метод

public localeIdentifiersAreCorrectlyExtractedFromFilename ( $filename, $expectedResult )

sampleHaystackStringsAndNeedleStrings() публичный Метод

Data provider with haystack strings and needle strings, used to test comparison methods. The third argument denotes whether needle is same as beginning of the haystack, or it's ending, or both or none.
public sampleHaystackStringsAndNeedleStrings ( ) : array
Результат array

sampleHttpAcceptLanguageHeaders() публичный Метод

Data provider with valid Accept-Language headers and expected results.
public sampleHttpAcceptLanguageHeaders ( ) : array
Результат array

stringIsFoundAtBeginningOfAnotherString() публичный Метод

public stringIsFoundAtBeginningOfAnotherString ( $haystack, $needle, $comparison )

stringIsFoundAtEndingOfAnotherString() публичный Метод

public stringIsFoundAtEndingOfAnotherString ( $haystack, $needle, $comparison )