PHP 클래스 Neos\Flow\Tests\Unit\I18n\Formatter\NumberFormatterTest

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

보호된 프로퍼티들

프로퍼티 타입 설명
$sampleLocale Neos\Flow\I18n\Locale
$sampleLocalizedSymbols array Localized symbols array used during formatting.
$templateFormat array A template array of parsed format. Used as a base in order to not repeat same fields everywhere.

공개 메소드들

메소드 설명
customFormatsAndFormatterNumbers ( ) : array Data provider with example numbers, parsed formats, and expected results.
formatMethodsAreChoosenCorrectly ( )
formattingUsingCustomPatternWorks ( $number, $format, array $parsedFormat, $expectedResult )
parsedFormatsAreUsedCorrectly ( $number, $expectedResult, array $parsedFormat )
sampleDataForSpecificFormattingMethods ( ) : array Data provider with numbers, parsed formats, expected results, format types (decimal, percent or currency) and currency sign if applicable.
sampleNumbersAndParsedFormats ( ) : array Data provider with example numbers, parsed formats, and expected results.
setUp ( ) : void
specificFormattingMethodsWork ( $number, array $parsedFormat, $expectedResult, $formatType, $currencySign = null )

메소드 상세

customFormatsAndFormatterNumbers() 공개 메소드

Data provider with example numbers, parsed formats, and expected results.

formatMethodsAreChoosenCorrectly() 공개 메소드

formattingUsingCustomPatternWorks() 공개 메소드

public formattingUsingCustomPatternWorks ( $number, $format, array $parsedFormat, $expectedResult )
$parsedFormat array

parsedFormatsAreUsedCorrectly() 공개 메소드

public parsedFormatsAreUsedCorrectly ( $number, $expectedResult, array $parsedFormat )
$parsedFormat array

sampleDataForSpecificFormattingMethods() 공개 메소드

Data provider with numbers, parsed formats, expected results, format types (decimal, percent or currency) and currency sign if applicable.

sampleNumbersAndParsedFormats() 공개 메소드

Note: order of elements in returned array is actually different (sample number, expected result, and parsed format to use), in order to make it more readable.

setUp() 공개 메소드

public setUp ( ) : void
리턴 void

specificFormattingMethodsWork() 공개 메소드

public specificFormattingMethodsWork ( $number, array $parsedFormat, $expectedResult, $formatType, $currencySign = null )
$parsedFormat array

프로퍼티 상세

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

protected Locale,Neos\Flow\I18n $sampleLocale
리턴 Neos\Flow\I18n\Locale

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

Localized symbols array used during formatting.
protected array $sampleLocalizedSymbols
리턴 array

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

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