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

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.

Public Methods

Method Description
createCacheExpectations ( PHPUnit_Framework_MockObject_MockObject $mockCache ) : array Setting cache expectations is partially same for many tests, so it's been extracted to this method.
dateTimeFormatIsParsedCorrectly ( )
formatIsCorrectlyReadFromCldr ( )
formatStringsAndParsedFormats ( ) : array Data provider with valid format strings and expected results.
formatStringsAreParsedCorrectly ( $format, $expectedResult )
localizedLiteralsAreCorrectlyReadFromCldr ( )
setUp ( ) : void

Method Details

createCacheExpectations() public method

Setting cache expectations is partially same for many tests, so it's been extracted to this method.
public createCacheExpectations ( PHPUnit_Framework_MockObject_MockObject $mockCache ) : array
$mockCache PHPUnit_Framework_MockObject_MockObject
return array

dateTimeFormatIsParsedCorrectly() public method

formatIsCorrectlyReadFromCldr() public method

formatStringsAndParsedFormats() public method

Data provider with valid format strings and expected results.

formatStringsAreParsedCorrectly() public method

public formatStringsAreParsedCorrectly ( $format, $expectedResult )

localizedLiteralsAreCorrectlyReadFromCldr() public method

setUp() public method

public setUp ( ) : void
return void

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