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

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$detector Neos\Flow\I18n\Detector

Méthodes publiques

Méthode 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 méthode

public detectingBestMatchingLocaleFromHttpAcceptLanguageHeaderWorksCorrectly ( $acceptLanguageHeader, $expectedResult )

detectingBestMatchingLocaleFromLocaleIdentifierWorksCorrectly() public méthode

public detectingBestMatchingLocaleFromLocaleIdentifierWorksCorrectly ( $localeIdentifier, $expectedResult )

sampleHttpAcceptLanguageHeaders() public méthode

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

sampleLocaleIdentifiers() public méthode

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

setUp() public méthode

public setUp ( ) : void
Résultat void

Property Details

$detector protected_oe property

protected Detector,Neos\Flow\I18n $detector
Résultat Neos\Flow\I18n\Detector