clue / reactphp-shell

Run async commands within any interactive shell command, built on top of ReactPHP.
MIT License
33 stars 14 forks source link

Run tests on PHPUnit 9 and update PHPUnit configuration schema for PHPUnit 9.3 #13

Closed SimonFrings closed 4 years ago

SimonFrings commented 4 years ago

PHPUnit 9.3 released a new schema for the phpunit.xml configuration file. I had to migrate the file to the new format in order to avoid the warning. PHPUnit Versions older than 9.3 have to use the phpunit.xml.legacy configuration file, because the new format is unknown for them. For further details concerning this pull request look into https://github.com/graphp/graphviz/pull/46.

Together with #12 (by @SimonFrings, great guy by the way) it's also possible to run this code with PHP 8 🎉

$ docker run -it --rm -v `pwd`:/data --workdir=/data php:8.0.0beta2-cli php vendor/bin/phpunit
PHPUnit 9.3.11 by Sebastian Bergmann and contributors.

............S...                                                  16 / 16 (100%)

Time: 00:00.151, Memory: 6.00 MB

OK, but incomplete, skipped, or risky tests!
Tests: 16, Assertions: 33, Skipped: 1.