🤑 Just some fun after a question in the PHP Brasil Facebook Group.
$parser = new \MoneyParser\MoneyParser();
expect($parser->parse('123'))->toBe(123.0);
expect($parser->parse('1234'))->toBe(1234.0);
expect($parser->parse('1.234'))->toBe(1234.0);
expect($parser->parse('1.234,56'))->toBe(1234.56);
expect($parser->parse('R$ 1.234,56'))->toBe(1234.56);
expect($parser->parse('123.456.789,10 reais'))->toBe(123456789.1);