Neos\Flow\Tests\Unit\I18n\Formatter\NumberFormatterTest::customFormatsAndFormatterNumbers PHP Метод

customFormatsAndFormatterNumbers() публичный Метод

Data provider with example numbers, parsed formats, and expected results.
public customFormatsAndFormatterNumbers ( ) : array
Результат array
    public function customFormatsAndFormatterNumbers()
    {
        return [[1234.567, '00000.0000', array_merge($this->templateFormat, ['minDecimalDigits' => 4, 'maxDecimalDigits' => 4, 'minIntegerDigits' => 5]), '01234,5670'], [0.10004, '0.0###', array_merge($this->templateFormat, ['minDecimalDigits' => 1, 'maxDecimalDigits' => 4]), '0,1'], [-1099.99, '#,##0.0;(#)', array_merge($this->templateFormat, ['minDecimalDigits' => 1, 'primaryGroupingSize' => 3, 'secondaryGroupingSize' => 3, 'negativePrefix' => '(', 'negativeSuffix' => ')']), '(1 100,0)']];
    }