File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,11 @@ public function testgetName()
3030 $ this ->assertEquals ('geo_plugin ' , $ provider ->getName ());
3131 }
3232
33- /**
34- * @expectedException \Geocoder\Exception\UnsupportedOperation
35- * @expectedExceptionMessage The GeoPlugin provider does not support street addresses, only IP addresses.
36- */
3733 public function testGeocodeWithAddress ()
3834 {
35+ $ this ->expectException (\Geocoder \Exception \UnsupportedOperation::class);
36+ $ this ->expectExceptionMessage ('The GeoPlugin provider does not support street addresses, only IP addresses. ' );
37+
3938 $ provider = new GeoPlugin ($ this ->getMockedHttpClient ());
4039 $ provider ->geocodeQuery (GeocodeQuery::create ('10 avenue Gambetta, Paris, France ' ));
4140 }
@@ -86,12 +85,11 @@ public function testGeocodeWithRealIPv4()
8685 $ this ->assertEquals ('US ' , $ result ->getCountry ()->getCode ());
8786 }
8887
89- /**
90- * @expectedException \Geocoder\Exception\UnsupportedOperation
91- * @expectedExceptionMessage The GeoPlugin provider is not able to do reverse geocoding.
92- */
9388 public function testReverse ()
9489 {
90+ $ this ->expectException (\Geocoder \Exception \UnsupportedOperation::class);
91+ $ this ->expectExceptionMessage ('The GeoPlugin provider is not able to do reverse geocoding. ' );
92+
9593 $ provider = new GeoPlugin ($ this ->getMockedHttpClient ());
9694 $ provider ->reverseQuery (ReverseQuery::fromCoordinates (1 , 2 ));
9795 }
Original file line number Diff line number Diff line change 1212 }
1313 ],
1414 "require" : {
15- "php" : " ^7.2 " ,
15+ "php" : " ^7.3 || ^8.0 " ,
1616 "geocoder-php/common-http" : " ^4.0" ,
1717 "igorw/get-in" : " ^1.0" ,
1818 "willdurand/geocoder" : " ^4.0"
You can’t perform that action at this time.
0 commit comments