Neos\Flow\Tests\Unit\I18n\Formatter\NumberFormatterTest::sampleDataForSpecificFormattingMethods PHP Method

sampleDataForSpecificFormattingMethods() public method

Data provider with numbers, parsed formats, expected results, format types (decimal, percent or currency) and currency sign if applicable.
    public function sampleDataForSpecificFormattingMethods()
    {
        return [[9999.9, array_merge($this->templateFormat, ['maxDecimalDigits' => 3, 'primaryGroupingSize' => 3, 'secondaryGroupingSize' => 3]), '9 999,9', I18n\Cldr\Reader\NumbersReader::FORMAT_TYPE_DECIMAL], [0.85, array_merge($this->templateFormat, ['multiplier' => 100, 'positiveSuffix' => '%', 'negativeSuffix' => '%']), '85%', I18n\Cldr\Reader\NumbersReader::FORMAT_TYPE_PERCENT], [5.5, array_merge($this->templateFormat, ['minDecimalDigits' => 2, 'maxDecimalDigits' => 2, 'primaryGroupingSize' => 3, 'secondaryGroupingSize' => 3, 'positiveSuffix' => ' ¤', 'negativeSuffix' => ' ¤']), '5,50 zł', I18n\Cldr\Reader\NumbersReader::FORMAT_TYPE_CURRENCY, 'zł'], [acos(8), array_merge($this->templateFormat, ['minDecimalDigits' => 2, 'maxDecimalDigits' => 2, 'primaryGroupingSize' => 3, 'secondaryGroupingSize' => 3]), 'NaN', I18n\Cldr\Reader\NumbersReader::FORMAT_TYPE_DECIMAL], [log(0), array_merge($this->templateFormat, ['minDecimalDigits' => 2, 'maxDecimalDigits' => 2, 'primaryGroupingSize' => 3, 'secondaryGroupingSize' => 3]), '-∞', I18n\Cldr\Reader\NumbersReader::FORMAT_TYPE_PERCENT], [-log(0), array_merge($this->templateFormat, ['minDecimalDigits' => 2, 'maxDecimalDigits' => 2, 'primaryGroupingSize' => 3, 'secondaryGroupingSize' => 3]), '∞', I18n\Cldr\Reader\NumbersReader::FORMAT_TYPE_CURRENCY]];
    }