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

Yoast / PHPUnit-Polyfills / 10744312956
97%
3.x: 98%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 06 Sep 2024 07:46PM UTC
Jobs 32
Files 31
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

06 Sep 2024 07:44PM UTC coverage: 97.152%. Remained the same
10744312956

push

github

jrfnl
Composer/GH Actions: allow for PHPUnit 11.x

PHPUnit 11.0 has been released on Feb 2, 2024.

As the PHPUnit Polyfills, as of now, will officially support PHPUnit 11.x (with the exception of the TestListeners), the GH Actions workflow should be updated to reflect this.

This commit:
* Allows for PHPUnit 11 in the `composer.json` `require`.
* Add builds for PHP 8.2 and 8.3 against low PHPUnit 11 versions for the Composer based tests.
    The "high" versions are automatically sorted via the matrix `auto` setting in combination with the Composer PHPUnit version requirements being widened.
* Add builds for PHP 8.2 and 8.3 against high/low PHPUnit 11 for the PHAR based tests.
* Add an extra experimental build in both test workflows against PHP "nightly" to ensure both PHPUnit 9.x, 10.x, as well as PHPUnit 11.x are tested with PHP 8.4.
* Updates the experimental build against "future" PHPUnit to always run against the latest official PHP release.

**Regarding PHPUnit 11 and running code coverage**:

Since PHPUnit 10, PHPUnit did not distinguish between PHPUnit and PHP deprecation notices anymore.
This means that when `failOnDeprecation` is enabled (as is done for this library to be ready early for new PHP versions), a test run will also fail if there are PHPUnit native deprecation notices.

Now PHPUnit 11.2 deprecated the use of `#[CoversClass]` for traits and introduced a `#[CoversTrait]` attribute to replace this.
However, it is currently impossible to action this deprecation notice in a PHPUnit cross-version compatible manner.
This was reported upstream in sebastianbergmann/phpunit 5937

As a result of this report, PHPUnit, as of PHPUnit 10.5.32 and PHPUnit 11.3.3 will no longer exit with a non-zero exit code when `failOnDeprecation` is enabled and the only deprecations are PHPUnit native deprecations.

The net-effect of this is as follows:
* Code coverage can run unrestricted on PHPUnit 10 for this test suite as there are no PHPUnit native deprecations w... (continued)

580 of 597 relevant lines covered (97.15%)

126.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-7.4-phpunit-8.1.6 - 10744312956.1 06 Sep 2024 07:46PM UTC 31
62.56
GitHub Action Run
2 php-8.3-phpunit-10.1.0 - 10744312956.2 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
3 php-7.4-phpunit-phar-8 - 10744312956.3 06 Sep 2024 07:46PM UTC 31
58.23
GitHub Action Run
4 php-8.3-phpunit-auto - 10744312956.4 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
5 php-8.3-phpunit-phar-9 - 10744312956.5 06 Sep 2024 07:46PM UTC 31
27.98
GitHub Action Run
6 php-7.3-phpunit-auto - 10744312956.6 06 Sep 2024 07:46PM UTC 31
28.77
GitHub Action Run
7 php-8.2-phpunit-9.3.0 - 10744312956.7 06 Sep 2024 07:46PM UTC 31
53.03
GitHub Action Run
8 php-8.1-phpunit-10.0.12 - 10744312956.8 06 Sep 2024 07:46PM UTC 31
14.07
GitHub Action Run
9 php-7.3-phpunit-phar-7 - 10744312956.9 06 Sep 2024 07:46PM UTC 31
62.56
GitHub Action Run
10 php-7.2-phpunit-auto - 10744312956.10 06 Sep 2024 07:46PM UTC 31
57.37
GitHub Action Run
11 php-8.1-phpunit-9.3.0 - 10744312956.11 06 Sep 2024 07:46PM UTC 31
53.03
GitHub Action Run
12 php-8.3-phpunit-phar-11 - 10744312956.12 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
13 php-7.1-phpunit-~6.4.4 - 10744312956.13 06 Sep 2024 07:46PM UTC 31
79.65
GitHub Action Run
14 php-8.2-phpunit-auto - 10744312956.14 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
15 php-7.2-phpunit-phar-6 - 10744312956.15 06 Sep 2024 07:46PM UTC 31
80.04
GitHub Action Run
16 php-8.0-phpunit-9.3.0 - 10744312956.16 06 Sep 2024 07:46PM UTC 31
53.03
GitHub Action Run
17 php-7.4-phpunit-auto - 10744312956.17 06 Sep 2024 07:46PM UTC 31
28.96
GitHub Action Run
18 php-7.2-phpunit-~7.1.0 - 10744312956.18 06 Sep 2024 07:46PM UTC 31
79.86
GitHub Action Run
19 php-8.1-phpunit-auto - 10744312956.19 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
20 php-7.3-phpunit-phar-9.0 - 10744312956.20 06 Sep 2024 07:46PM UTC 31
56.9
GitHub Action Run
21 php-7.4-phpunit-9.6.10 - 10744312956.21 06 Sep 2024 07:46PM UTC 31
38.94
GitHub Action Run
22 php-8.2-phpunit-phar-11.0 - 10744312956.22 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
23 php-7.1-phpunit-auto - 10744312956.23 06 Sep 2024 07:46PM UTC 31
61.81
GitHub Action Run
24 php-8.3-phpunit-phar-10 - 10744312956.24 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
25 php-7.0-phpunit-auto - 10744312956.25 06 Sep 2024 07:46PM UTC 31
79.47
GitHub Action Run
26 php-8.1-phpunit-phar-10.0 - 10744312956.26 06 Sep 2024 07:46PM UTC 31
14.68
GitHub Action Run
27 php-8.3-phpunit-11.0.0 - 10744312956.27 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
28 php-7.0-phpunit-6.4.4 - 10744312956.28 06 Sep 2024 07:46PM UTC 31
79.47
GitHub Action Run
29 php-8.0-phpunit-auto - 10744312956.29 06 Sep 2024 07:46PM UTC 31
27.79
GitHub Action Run
30 php-8.2-phpunit-~11.1.0 - 10744312956.30 06 Sep 2024 07:46PM UTC 31
4.5
GitHub Action Run
31 php-7.2-phpunit-phar-8.0 - 10744312956.31 06 Sep 2024 07:46PM UTC 31
62.22
GitHub Action Run
32 php-7.3-phpunit-7.2.7 - 10744312956.32 06 Sep 2024 07:46PM UTC 31
80.21
GitHub Action Run
Source Files on build 10744312956
  • Tree
  • List 31
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10744312956
  • 9197a319 on github
  • Prev Build on 3.x (#10744271314)
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