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

php-parallel-lint / PHP-Console-Color
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: feature/ghactions-update-for-php-8.4-release
DEFAULT BRANCH: master
Repo Added 28 Jan 2022 08:12AM CUT
Files 2
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

LAST BUILD ON BRANCH feature/tests-compatibility-with-phpunit-10
branch: feature/tests-compatibility-with-phpunit-10
CHANGE BRANCH
x
Reset
  • feature/tests-compatibility-with-phpunit-10
  • coveralls
  • coveralls-branch-fix
  • feature/add-dependabot-config-for-ghactions
  • feature/composer-credit-contributors
  • feature/ghactions-cache-busting
  • feature/ghactions-harden-cs-steps
  • feature/ghactions-switch-to-coveralls-reporter
  • feature/ghactions-tweak-php-versions
  • feature/ghactions-update
  • feature/ghactions-update-for-php-8.4-release
  • feature/ghactions-update-various-actions
  • feature/ghactions-various-minor-tweaks
  • feature/tests-compatibility-with-phpunit-10-11
  • master
  • test-php74

09 Apr 2024 08:10AM CUT coverage: 100.0%. Remained the same
8612445896

Pull #46

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
Pull Request #46: PHPUnit: allow for PHPUnit 10 + add separate configuration

67 of 67 relevant lines covered (100.0%)

5.25 hits per line

Relevant lines Covered
Build:
Build:
67 RELEVANT LINES 67 COVERED LINES
5.25 HITS PER LINE
Source Files on feature/tests-compatibility-with-phpunit-10
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
100.0
src/ConsoleColor.php293 65 65 0 5.0
100.0
src/InvalidStyleException.php9 2 2 0 3.0
Showing 1 to 2 of 2 entries
  • Previous
  • 1
  • Next
  • ►
    100.0
    src/

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
8612445896 feature/tests-compatibility-with-phpunit-10 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... Pull #46 09 Apr 2024 08:13AM CUT jrfnl github
100.0
See All Builds (52)
  • Repo on GitHub
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

© 2025 Coveralls, Inc