mikeerickson / phpunit-pretty-result-printer

PHPUnit Pretty Result Printer -- make your PHPUnit tests look pretty!
MIT License
1.2k stars 71 forks source link

Dump PHP version in "composer.json" #161

Closed YaFou closed 4 years ago

YaFou commented 4 years ago

I've worked on a project where I have to support at least PHP 7.1. So I use PHPUnit 7 to support this version and the printer.

My composer.json

"require": {
"php": "^7.1"
},
"require-dev": {
"phpunit/phpunit": "^7 || ^8 || ^9",
"codedungeon/phpunit-result-printer": "^0.25"
}

My problem here is that I can't install the printer on PHP 7.1 and PHP 7.2 because the printer can install itself but wants to install also PHPUnit 8 or 9. Or PHPUnit 8 requires at least PHP 7.2.

My suggestion here


"require": {
-  "php": "^7.1",
+  "php": "^7.2",
"hassankhan/config": "^0.11.2",
"symfony/yaml": "^2.7|^3.0|^4.0",
"codedungeon/php-cli-colors": "^1.10.2",
"2bj/phanybar": "^1.0",
"phpunit/phpunit": "^8.0|^9.0"
}
YaFou commented 4 years ago

Closed because I've not updated my composer.lock.