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

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

Protected Properties

Property Type Description
$detector Neos\Flow\I18n\Detector

Public Methods

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

Method Details

detectingBestMatchingLocaleFromHttpAcceptLanguageHeaderWorksCorrectly() public method

public detectingBestMatchingLocaleFromHttpAcceptLanguageHeaderWorksCorrectly ( $acceptLanguageHeader, $expectedResult )

detectingBestMatchingLocaleFromLocaleIdentifierWorksCorrectly() public method

public detectingBestMatchingLocaleFromLocaleIdentifierWorksCorrectly ( $localeIdentifier, $expectedResult )

sampleHttpAcceptLanguageHeaders() public method

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

sampleLocaleIdentifiers() public method

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

setUp() public method

public setUp ( ) : void
return void

Property Details

$detector protected property

protected Detector,Neos\Flow\I18n $detector
return Neos\Flow\I18n\Detector