File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 21
21
*/
22
22
class GeolocationTest extends \PHPUnit_Framework_TestCase
23
23
{
24
+ public function setUp ()
25
+ {
26
+ $ this ->api = new Geolocation ();
27
+ }
28
+
24
29
/**
25
30
* Test getting latitude/longitude coordinates from address.
26
31
*/
@@ -32,7 +37,7 @@ public function testGettingLatitudeAndLongitudeFromAddress()
32
37
$ zip = '1 ' ;
33
38
$ country = 'belgium ' ;
34
39
35
- $ result = Geolocation:: getCoordinates (
40
+ $ result = $ this -> api -> getCoordinates (
36
41
$ street ,
37
42
$ streetNumber ,
38
43
$ city ,
@@ -52,7 +57,7 @@ public function testGetAddressFromLatitudeAndLongitude()
52
57
$ latitude = 51.0363935 ;
53
58
$ longitude = 3.7121008 ;
54
59
55
- $ result = Geolocation:: getAddress (
60
+ $ result = $ this -> api -> getAddress (
56
61
$ latitude ,
57
62
$ longitude
58
63
);
You can’t perform that action at this time.
0 commit comments