Skip to content

Commit f6bdc3a

Browse files
authored
Allow running the unit tests on more recent PHPUnit versions (#140)
I've tested and the unit tests as-is are compatible with PHPUnit 7.x and 8.x without needing any adjustments, so we may as well allow using/installing those versions. Includes widening the version requirements for the `limedeck/phpunit-detailed-printer` to prevent it from being a blocker for using more recent PHPUnit versions. Version 4.x of the `limedeck/phpunit-detailed-printer` is compatible with PHPUnit 7.x, version 5.x is compatible with PHPUnit 8.x. Ref: https://github.com/LimeDeck/phpunit-detailed-printer/releases
1 parent 46bddcd commit f6bdc3a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/composer.lock
22
/vendor/
33
phpunit.xml
4+
.phpunit.result.cache
45
.phpcs.xml
56
phpcs.xml
67
tags

composer.circleci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"php" : ">=5.6.0"
3636
},
3737
"require-dev": {
38-
"phpunit/phpunit": "^5.0 || ^6.5",
38+
"phpunit/phpunit": "^5.0 || ^6.5 || ^7.0 || ^8.0",
3939
"squizlabs/php_codesniffer": "^3.1"
4040
}
4141
}

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
},
4040
"require-dev": {
4141
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || ^0.5 || ^0.6",
42-
"phpunit/phpunit": "^5.0 || ^6.5",
42+
"phpunit/phpunit": "^5.0 || ^6.5 || ^7.0 || ^8.0",
4343
"sirbrillig/phpcs-import-detection": "^1.1",
44-
"limedeck/phpunit-detailed-printer": "^3.1",
44+
"limedeck/phpunit-detailed-printer": "^3.1 || ^4.0 || ^5.0",
4545
"phpstan/phpstan": "^0.11.8"
4646
}
4747
}

0 commit comments

Comments
 (0)