PHP 클래스 Neos\Flow\Tests\Unit\I18n\UtilityTest

상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 메소드들

메소드 설명
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.

sampleHttpAcceptLanguageHeaders() 공개 메소드

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

stringIsFoundAtBeginningOfAnotherString() 공개 메소드

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

stringIsFoundAtEndingOfAnotherString() 공개 메소드

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