PHP Class Neos\Flow\Tests\Unit\I18n\UtilityTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Public Methods

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

Method Details

filenamesWithLocale() public method

Data provider with filenames with locale tags and expected results.
public filenamesWithLocale ( ) : array
return array

httpAcceptLanguageHeadersAreParsedCorrectly() public method

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

localeIdentifiersAreCorrectlyExtractedFromFilename() public method

public localeIdentifiersAreCorrectlyExtractedFromFilename ( $filename, $expectedResult )

sampleHaystackStringsAndNeedleStrings() public method

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

Data provider with valid Accept-Language headers and expected results.

stringIsFoundAtBeginningOfAnotherString() public method

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

stringIsFoundAtEndingOfAnotherString() public method

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