clue / reactphp-docker

Async, event-driven access to the Docker Engine API, built on top of ReactPHP.
https://clue.engineering/2019/introducing-reactphp-docker
MIT License
107 stars 16 forks source link

Update PHPUnit configuration schema for PHPUnit 9.3 #66

Closed SimonFrings closed 3 years ago

SimonFrings commented 3 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. This pull request builds on top of #65.

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.4.1 by Sebastian Bergmann and contributors.

...............................................................  63 / 139 ( 45%)
...........SSSSSSSSSSSSSSSSSSSSSSSSS........................... 126 / 139 ( 90%)
.............                                                   139 / 139 (100%)

Time: 00:00.062, Memory: 10.00 MB

OK, but incomplete, skipped, or risky tests!
Tests: 139, Assertions: 370, Skipped: 25.