• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

php-parallel-lint / PHP-Console-Highlighter / 8453692362
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: feature/changelog-1.0.1
DEFAULT BRANCH: master
Ran 27 Mar 2024 02:45PM UTC
Jobs 2
Files 1
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Mar 2024 02:43PM UTC coverage: 100.0%. First build
8453692362

push

github

jrfnl
PHPUnit: allow for PHPUnit 10 + add separate configuration

The PHPunit configuration file specification has undergone changes in PHPUnit 9.3, 10.0 and 10.1.

Most notably:
* In PHPUnit 9.3, the manner of specifying the code coverage configuration has changed.
* In PHPUnit 10.0, a significant number of attributes of the `<phpunit>` element were removed or renamed.
* In PHPUnit 10.1, there is another change related to the code coverage configuration + the ability to fail builds on deprecations/warnings/notices is brought back.

While the `--migrate-configuration` command can upgrade a configuration for the changes in the format made in PHPUnit 9.3, some of the changes in the configuration format in PHPUnit 10 don't have one-on-one replacements and/or are not taken into account.

As this package is used in the CI pipeline for other packages, it is important for this package to be ready for new PHP releases _early_, so failing the test suite on deprecations/notices and warnings is appropriate.

With that in mind, I deem it more appropriate to have a dedicated PHPUnit configuration file for PHPUnit 10 to ensure the test run will behave as intended.

This commit adds this dedicated configuration file for PHPUnit 10.1+.

Includes:
* Ignoring the new file for package archives.
* Allowing for a local override file.
* Adding scripts to the `composer.json` file to run the tests using this new configuration file and make the use of the separate config make more obvious for contributors.
* Updating the GH Actions `test` workflow to trigger the tests on PHPUnit 10 with this configuration file.

Ref:
* https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-10.0.md#1000---2023-02-03
* sebastianbergmann/phpunit 5196
* https://github.com/sebastianbergmann/phpunit/commit/fb6673f06

119 of 119 relevant lines covered (100.0%)

32.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-5.3 - 8453692362.1 27 Mar 2024 02:45PM UTC 0
97.5
GitHub Action Run
2 php-8.3 - 8453692362.2 27 Mar 2024 02:45PM UTC 0
100.0
GitHub Action Run
Source Files on build 8453692362
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #8453692362
  • 65c1e6d0 on github
  • Next Build on feature/tests-compatibility-with-phpunit-10 (#8612532430)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc