PHP Class Neos\Flow\Tests\Unit\I18n\Cldr\Reader\NumbersReaderTest

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

Protected Properties

Property Type Description
$sampleLocale Neos\Flow\I18n\Locale Dummy locale used in methods where locale is needed.
$templateFormat array A template array of parsed format. Used as a base in order to not repeat same fields everywhere.

Public Methods

Method Description
formatIsCorrectlyReadFromCldr ( )
formatStringsAndParsedFormats ( ) : array Data provider with valid format strings and expected results.
formatStringsAreParsedCorrectly ( $format, array $expectedResult )
setUp ( ) : void
throwsExceptionWhenUnsupportedFormatsEncountered ( $format )
unsupportedFormats ( ) : array Data provider with formats not supported by current implementation of NumbersReader.

Method Details

formatIsCorrectlyReadFromCldr() public method

formatStringsAndParsedFormats() public method

Data provider with valid format strings and expected results.

formatStringsAreParsedCorrectly() public method

public formatStringsAreParsedCorrectly ( $format, array $expectedResult )
$expectedResult array

setUp() public method

public setUp ( ) : void
return void

throwsExceptionWhenUnsupportedFormatsEncountered() public method

unsupportedFormats() public method

Data provider with formats not supported by current implementation of NumbersReader.
public unsupportedFormats ( ) : array
return array

Property Details

$sampleLocale protected property

Dummy locale used in methods where locale is needed.
protected Locale,Neos\Flow\I18n $sampleLocale
return Neos\Flow\I18n\Locale

$templateFormat protected property

A template array of parsed format. Used as a base in order to not repeat same fields everywhere.
protected array $templateFormat
return array