-
-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Labels
Description
Would be nice isn't it? But I know, I know. It's complicated, because of PHPUnit 8.
But here is something interesting. I tried the following:
diff --git a/composer.json b/composer.json
index f6faa66..fa65403 100644
--- a/composer.json
+++ b/composer.json
@@ -9,8 +9,8 @@
"evenement/evenement": "^3.0 || ^2.0 || ^1.0"
},
"require-dev": {
- "phpunit/phpunit": "^6.4 || ^5.7 || ^4.8.35",
- "clue/stream-filter": "~1.2"
+ "clue/stream-filter": "~1.2",
+ "symfony/phpunit-bridge": "^5.0"
},
"autoload": {
"psr-4": {And then that:
$ composer install
$ vendor/bin/simple-phpunit
# Here is the docker version if you prefer
$ docker run --rm -v $(pwd):/app -w /app composer:latest composer install
$ docker run --rm -v $(pwd):/app -w /app php:7.4 vendor/bin/simple-phpunitAnd here is the output. Not bad for a code with no modification!
WARNINGS!
Tests: 176, Assertions: 259, Warnings: 14, Skipped: 33.
$ echo $?
0 # no test suite modification no error with PHP 7.4 ✨I hope it helps. ✌️