Skip to content

Commit c118174

Browse files
authored
Merge pull request #66 from arokettu/php-8
PHP 8 support
2 parents 5e2d3d8 + b509679 commit c118174

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ php:
88
- 7.1
99
- 7.2
1010
- 7.3
11+
- 7.4
12+
- 8.0snapshot
1113

1214
matrix:
1315
include:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
}
1515
},
1616
"require": {
17-
"php": "~7.1",
17+
"php": "^7.1 || ^8.0",
1818
"php-di/php-di": "^6.0.0",
1919
"php-di/invoker": "^2.0.0",
2020
"slim/slim": "^4.2.0"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "~6.0",
24-
"zendframework/zend-diactoros": "^2.1"
23+
"laminas/laminas-diactoros": "^2.1",
24+
"phpunit/phpunit": ">= 7.0 < 10"
2525
}
2626
}

phpunit.xml.dist

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33
convertErrorsToExceptions="true"
44
convertNoticesToExceptions="true"
55
convertWarningsToExceptions="true"
6-
bootstrap="./vendor/autoload.php">
6+
bootstrap="./vendor/autoload.php"
7+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
79

810
<testsuites>
911
<testsuite name="Test suite">
1012
<directory>./tests/</directory>
1113
</testsuite>
1214
</testsuites>
1315

14-
<filter>
15-
<whitelist processUncoveredFilesFromWhitelist="true">
16+
<coverage processUncoveredFiles="true">
17+
<include>
1618
<directory suffix=".php">src</directory>
17-
</whitelist>
18-
</filter>
19+
</include>
20+
</coverage>
1921

2022
</phpunit>

0 commit comments

Comments
 (0)