Skip to content

Commit 3712172

Browse files
Add two tests for https = false
1 parent 7661e59 commit 3712172

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/GeolocationTest.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,22 @@ public function testGetAddressFromLatitudeAndLongitude(): void
6868

6969
$this->assertEquals('Pr. Clementinalaan 114-140, 9000 Gent, Belgium', $result->getLabel());
7070
}
71+
72+
/**
73+
* Test getting latitude/longitude coordinates from address.
74+
*/
75+
public function testGettingLatitudeAndLongitudeFromAddressWithoutHTTPS(): void
76+
{
77+
$this->api = new Geolocation(null, false);
78+
$this->testGettingLatitudeAndLongitudeFromAddress();
79+
}
80+
81+
/**
82+
* Test getting address from latitude and longitude coordinates.
83+
*/
84+
public function testGetAddressFromLatitudeAndLongitudeWithoutHTTPS(): void
85+
{
86+
$this->api = new Geolocation(null, false);
87+
$this->testGetAddressFromLatitudeAndLongitude();
88+
}
7189
}

0 commit comments

Comments
 (0)