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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$detector Neos\Flow\I18n\Detector

공개 메소드들

메소드 설명
detectingBestMatchingLocaleFromHttpAcceptLanguageHeaderWorksCorrectly ( $acceptLanguageHeader, $expectedResult )
detectingBestMatchingLocaleFromLocaleIdentifierWorksCorrectly ( $localeIdentifier, $expectedResult )
sampleHttpAcceptLanguageHeaders ( ) : array Data provider with valid Accept-Language headers and expected results.
sampleLocaleIdentifiers ( ) : array Data provider with valid locale identifiers (tags) and expected results.
setUp ( ) : void

메소드 상세

detectingBestMatchingLocaleFromHttpAcceptLanguageHeaderWorksCorrectly() 공개 메소드

public detectingBestMatchingLocaleFromHttpAcceptLanguageHeaderWorksCorrectly ( $acceptLanguageHeader, $expectedResult )

detectingBestMatchingLocaleFromLocaleIdentifierWorksCorrectly() 공개 메소드

public detectingBestMatchingLocaleFromLocaleIdentifierWorksCorrectly ( $localeIdentifier, $expectedResult )

sampleHttpAcceptLanguageHeaders() 공개 메소드

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

sampleLocaleIdentifiers() 공개 메소드

Data provider with valid locale identifiers (tags) and expected results.
public sampleLocaleIdentifiers ( ) : array
리턴 array

setUp() 공개 메소드

public setUp ( ) : void
리턴 void

프로퍼티 상세

$detector 보호되어 있는 프로퍼티

protected Detector,Neos\Flow\I18n $detector
리턴 Neos\Flow\I18n\Detector