diff --git a/tests/phpunit/CRM/Utils/GeocodeTest.php b/tests/phpunit/CRM/Utils/GeocodeTest.php new file mode 100644 index 000000000000..980cb2830910 --- /dev/null +++ b/tests/phpunit/CRM/Utils/GeocodeTest.php @@ -0,0 +1,24 @@ + 1022, 'country' => 'U.S.A'); + $formatted = CRM_Utils_Geocode_Google::format($params); + $this->assertTrue($formatted); + $this->assertApproxEquals('46.72', $params['geo_code_1'], 1); + $this->assertApproxEquals('-94.68', $params['geo_code_2'], 1); + } + +}