Skip to content

Commit 99e5562

Browse files
authored
Enable PHP 8.0 support (#1102)
* Enable PHP 8.0 support * Add GitHub Actions * Upgrade php-http/curl-client + php-http/httplug * Upgrade PHPUnit * Drop PHP 7.2 support * Update GitHub Actions Remove PHP 7.2 * Update Travis CI Remove PHP 7.2 * Drop PHP 7.2 support
1 parent 3e9ad74 commit 99e5562

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

Tests/GeoPluginTest.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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"

0 commit comments

Comments
 (0)