@ -1296,6 +1296,8 @@ class Formatter extends Component
* @return string the formatted result.
* @throws InvalidArgumentException if the input value is not numeric or the formatting failed.
* @throws InvalidConfigException when the [PHP intl extension](http://php.net/manual/en/book.intl.php) is not available.
*
* This formatter does not work well with very big numbers.
*/
public function asSpellout($value)
{
@ -525,11 +525,6 @@ class FormatterNumberTest extends TestCase
$this->assertSame('one hundred twenty-three', $this->formatter->asSpellout(123));
$this->assertSame(
'eighteen quadrillion fourteen trillion three hundred ninety-eight billion five hundred nine million four hundred eighty-one thousand nine hundred eighty-four',
$this->formatter->asSpellout('87654321098765436')
);
$this->formatter->locale = 'de_DE';
$this->assertSame('einhundertdreiundzwanzig', $this->formatter->asSpellout(123));