Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd63f0c

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

File tree

4 files changed

+46
-31
lines changed

4 files changed

+46
-31
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
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

Lines changed: 17 additions & 3 deletions
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+
## 1.3.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
## 1.2.0
620

721
### Removed
@@ -10,10 +24,10 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
1024

1125
## 1.1.0
1226

13-
### Added
27+
### Added
1428

15-
- Support for setting permission on the cache plugin.
29+
- Support for setting permission on the cache plugin.
1630

1731
## 1.0.0
1832

19-
First release of this library.
33+
First release of this library.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"require-dev": {
2424
"cache/void-adapter": "^1.0",
25-
"phpunit/phpunit": "^7.5"
25+
"phpunit/phpunit": "^9.5"
2626
},
2727
"extra": {
2828
"branch-alias": {

phpunit.xml.dist

Lines changed: 22 additions & 26 deletions
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)