Skip to content

Commit cc6ae24

Browse files
committed
handling phpunit version for PHP 7.2, 7.3
1 parent 6fad726 commit cc6ae24

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
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" ]] && [[ "${PHP_VERSION}" != "7.3" ]]; 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 || ~8.0.0 || ~8.1.0 || ~8.2.0"
14+
"php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0"
1515
},
1616
"require-dev": {
17-
"phpunit/phpunit": "^8 || ^9 || ^10"
17+
"phpunit/phpunit": "^9.5.10"
1818
},
1919
"autoload": {
2020
"psr-4": {

0 commit comments

Comments
 (0)