Skip to content

Commit 09f0e0e

Browse files
Tests updated
1 parent 2417378 commit 09f0e0e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/GeolocationTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
*/
2222
class GeolocationTest extends \PHPUnit_Framework_TestCase
2323
{
24+
public function setUp()
25+
{
26+
$this->api = new Geolocation();
27+
}
28+
2429
/**
2530
* Test getting latitude/longitude coordinates from address.
2631
*/
@@ -32,7 +37,7 @@ public function testGettingLatitudeAndLongitudeFromAddress()
3237
$zip = '1';
3338
$country = 'belgium';
3439

35-
$result = Geolocation::getCoordinates(
40+
$result = $this->api->getCoordinates(
3641
$street,
3742
$streetNumber,
3843
$city,
@@ -52,7 +57,7 @@ public function testGetAddressFromLatitudeAndLongitude()
5257
$latitude = 51.0363935;
5358
$longitude = 3.7121008;
5459

55-
$result = Geolocation::getAddress(
60+
$result = $this->api->getAddress(
5661
$latitude,
5762
$longitude
5863
);

0 commit comments

Comments
 (0)