Skip to content

Commit 7b8117c

Browse files
authored
Merge pull request #2 from otobank/php8
enable php8
2 parents ca77f9e + 0c7d7fb commit 7b8117c

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.laminas-ci/pre-install.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
WORKING_DIRECTORY=$2
4+
JOB=$3
5+
PHP_VERSION=$(echo "${JOB}" | jq -r .php)
6+
7+
if [[ "${PHP_VERSION}" != "7.2" ]] ; then
8+
exit 0
9+
fi
10+
11+
composer require --dev phpunit/phpunit:^8.5.31 --no-update --update-with-dependencies

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.2"
14+
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^8"
17+
"phpunit/phpunit": "^9.5.10"
1818
},
1919
"autoload": {
2020
"psr-4": {

phpunit.xml

-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,4 @@
1515
<directory>./tests/</directory>
1616
</testsuite>
1717
</testsuites>
18-
<filter>
19-
<whitelist>
20-
<directory suffix=".php">src</directory>
21-
</whitelist>
22-
</filter>
2318
</phpunit>

0 commit comments

Comments
 (0)