willdurand/Geocoder — pull request #116 by ronanguilloux (2012-11-01 21:42:12+00:00)
Title: Phpunit locale aware hotfix

Hello dear Geocoder's maintainers,

I propose some fixes about broken phpunit tests cases, caused by locale-specific assertions.

On my laptop, phpunit tests suite failed because of PHP's locales: I see a comma in "0,00" when other see "0.00" with a dot. The dead simple sprintf I introduced now makes the argument treated as a locale aware float, and presented as a floating-point number. It runs perfectly on a machine where "fr_FR" is the PHP's preferred locale. I also run it on Travis-ci servers, that are eng-US localized, & [tests passed without errors](https://travis-ci.org/#!/ronanguilloux/Geocoder/jobs/3024036)

Hope It'll help.