Skip to content

Commit 9f44a00

Browse files
authored
Enable PHP 8.0 support (1) (#1103)
* Upragde PHPUnit * Upgrade PHPUnit configuration * Upgrade Travis CI configuration * Update changelogs
1 parent dcf267c commit 9f44a00

File tree

4 files changed

+46
-31
lines changed

4 files changed

+46
-31
lines changed

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
language: php
22

3-
php: 7.2
3+
matrix:
4+
fast_finish: true
5+
include:
6+
- php: 7.3
7+
- php: 7.4
8+
- php: 8.0
49

510
install:
611
- composer update --prefer-stable --prefer-dist

CHANGELOG.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
44

5+
## 4.4.0
6+
7+
### Added
8+
9+
- Add support for PHP 8.0
10+
11+
### Removed
12+
13+
- Drop support for PHP 7.2
14+
15+
### Changed
16+
17+
- Upgrade PHPUnit to version 9
18+
519
## 4.3.0
620

721
### Removed
@@ -19,14 +33,14 @@ got `AbstractHttpProvider::getUrlContents`, `AbstractHttpProvider::getRequest` a
1933

2034
## 4.0.0
2135

22-
No changes since beta 2.
36+
No changes since beta 2.
2337

2438
## 4.0.0-beta2
2539

2640
- Removed `AbstractHttpProvider::setMessageFactory`.
2741
- Removed `AbstractHttpProvider::getHttpClient`.
28-
- Make sure we have a `MessageFactory` in the constructor of `AbstractHttpProvider`.
42+
- Make sure we have a `MessageFactory` in the constructor of `AbstractHttpProvider`.
2943

3044
## 4.0.0-beta1
3145

32-
First release of this library.
46+
First release of this library.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"nyholm/psr7": "^1.0",
2828
"php-http/message": "^1.0",
2929
"php-http/mock-client": "^1.0",
30-
"phpunit/phpunit": "^7.5",
30+
"phpunit/phpunit": "^9.5",
3131
"symfony/stopwatch": "~2.5"
3232
},
3333
"extra": {

phpunit.xml.dist

+22-26
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
5-
backupGlobals="false"
6-
colors="true"
7-
bootstrap="vendor/autoload.php"
8-
>
9-
<php>
10-
<ini name="error_reporting" value="-1" />
11-
</php>
12-
13-
<testsuites>
14-
<testsuite name="Geocoder Test Suite">
15-
<directory>./Tests/</directory>
16-
</testsuite>
17-
</testsuites>
18-
19-
<filter>
20-
<whitelist>
21-
<directory>./</directory>
22-
<exclude>
23-
<directory>./Tests</directory>
24-
<directory>./vendor</directory>
25-
</exclude>
26-
</whitelist>
27-
</filter>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
3+
backupGlobals="false"
4+
colors="true"
5+
bootstrap="vendor/autoload.php"
6+
>
7+
<coverage>
8+
<include>
9+
<directory>./</directory>
10+
</include>
11+
<exclude>
12+
<directory>./Tests</directory>
13+
<directory>./vendor</directory>
14+
</exclude>
15+
</coverage>
16+
<php>
17+
<ini name="error_reporting" value="-1"/>
18+
</php>
19+
<testsuites>
20+
<testsuite name="Geocoder Test Suite">
21+
<directory>./Tests/</directory>
22+
</testsuite>
23+
</testsuites>
2824
</phpunit>

0 commit comments

Comments
 (0)