1919
2020class PhotonTest extends BaseTestCase
2121{
22- protected function getCacheDir ()
22+ protected function getCacheDir (): string
2323 {
2424 return __DIR__ .'/.cached_responses ' ;
2525 }
2626
27- public function testGeocodeWithLocalhostIPv4 ()
27+ public function testGeocodeWithLocalhostIPv4 (): void
2828 {
2929 $ this ->expectException (\Geocoder \Exception \UnsupportedOperation::class);
3030 $ this ->expectExceptionMessage ('The Photon provider does not support IP addresses. ' );
@@ -33,7 +33,7 @@ public function testGeocodeWithLocalhostIPv4()
3333 $ provider ->geocodeQuery (GeocodeQuery::create ('127.0.0.1 ' ));
3434 }
3535
36- public function testGeocodeWithLocalhostIPv6 ()
36+ public function testGeocodeWithLocalhostIPv6 (): void
3737 {
3838 $ this ->expectException (\Geocoder \Exception \UnsupportedOperation::class);
3939 $ this ->expectExceptionMessage ('The Photon provider does not support IP addresses. ' );
@@ -42,7 +42,7 @@ public function testGeocodeWithLocalhostIPv6()
4242 $ provider ->geocodeQuery (GeocodeQuery::create ('::1 ' ));
4343 }
4444
45- public function testGeocodeWithRealIPv6 ()
45+ public function testGeocodeWithRealIPv6 (): void
4646 {
4747 $ this ->expectException (\Geocoder \Exception \UnsupportedOperation::class);
4848 $ this ->expectExceptionMessage ('The Photon provider does not support IP addresses. ' );
@@ -51,7 +51,7 @@ public function testGeocodeWithRealIPv6()
5151 $ provider ->geocodeQuery (GeocodeQuery::create ('::ffff:88.188.221.14 ' ));
5252 }
5353
54- public function testGeocodeQuery ()
54+ public function testGeocodeQuery (): void
5555 {
5656 $ provider = Photon::withKomootServer ($ this ->getHttpClient ());
5757 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('10 avenue Gambetta, Paris, France ' ));
@@ -80,7 +80,7 @@ public function testGeocodeQuery()
8080 $ this ->assertEquals ('Paris ' , $ result ->getDistrict ());
8181 }
8282
83- public function testGeocodeQueryWithNamedResult ()
83+ public function testGeocodeQueryWithNamedResult (): void
8484 {
8585 $ provider = Photon::withKomootServer ($ this ->getHttpClient ());
8686 $ results = $ provider ->geocodeQuery (GeocodeQuery::create ('Sherlock Holmes Museum, 221B Baker St, London, England ' ));
@@ -94,7 +94,7 @@ public function testGeocodeQueryWithNamedResult()
9494 $ this ->assertEquals ('The Sherlock Holmes Museum and shop ' , $ result ->getName ());
9595 }
9696
97- public function testReverseQuery ()
97+ public function testReverseQuery (): void
9898 {
9999 $ provider = Photon::withKomootServer ($ this ->getHttpClient ());
100100 $ results = $ provider ->reverseQuery (ReverseQuery::fromCoordinates (52 , 10 ));
0 commit comments