Skip to content

Commit

Permalink
Enable PHP 8.0 support (#1102)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jbelien committed Dec 19, 2020
1 parent 315ec1f commit f5d712d
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 77 deletions.
4 changes: 2 additions & 2 deletions Tests/CountryInfoTest.php
Expand Up @@ -32,7 +32,7 @@ public function testCountryInfoWithOneCountry()
$provider = new Geonames($this->getHttpClient($_SERVER['GEONAMES_USERNAME']), $_SERVER['GEONAMES_USERNAME']);
$results = $provider->getCountryInfo('IN');

$this->assertInternalType('array', $results);
$this->assertIsArray($results);
$this->assertEquals(1, count($results));

/* @var CountryInfo $result */
Expand All @@ -42,7 +42,7 @@ public function testCountryInfoWithOneCountry()
$this->assertInstanceOf('Geocoder\Model\Bounds', $result->getBounds());
$this->assertEquals('AS', $result->getContinent());
$this->assertEquals('New Delhi', $result->getCapital());
$this->assertInternalType('array', $result->getLanguages());
$this->assertIsArray($result->getLanguages());
$this->assertEquals(1269750, $result->getGeonameId());
$this->assertEquals('IND', $result->getIsoAlpha3());
$this->assertEquals('IN', $result->getFipsCode());
Expand Down

0 comments on commit f5d712d

Please sign in to comment.