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

Yoast / PHPUnit-Polyfills / 10630196724
96%
3.x: 98%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 30 Aug 2024 09:23AM UTC
Jobs 31
Files 41
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

30 Aug 2024 09:22AM UTC coverage: 96.408%. Remained the same
10630196724

push

github

jrfnl
PHP 8.4 | Silence deprecation notice in the tests

PHP 8.4 deprecates passing `E_USER_ERROR` to `trigger_error()`, with the recommendation being to replace these type of calls with either an Exception or an `exit` statement.

As this is a test related to the PHPUnit `expectError()` assertion, the basic principle of the test cannot be changed without the test losing its validity.

Instead, this commit silences the PHP 8.4 deprecation notice specifically for PHP 8.4+.

Notes:
* The error silencing can not be added unconditionally as on PHP < 8.0, this would also silence the actual error, not just the deprecation notice.
* The commit also already adds a PHPUnit `@requires` annotation to indicate that the test should be skipped on PHP 9.0 as the deprecation will become an error in PHP 9.0.
    This `@requires` annotation with an operator is not supported in older PHPUnit version, but that just means the annotation will be ignored and the test will run, which is exactly what is supposed to happen ;-)

Refs:
* https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_passing_e_user_error_to_trigger_error
* https://www.php.net/manual/en/language.operators.errorcontrol.php

671 of 696 relevant lines covered (96.41%)

96.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.3-phpunit-9.3.0 - 10630196724.1 30 Aug 2024 09:23AM UTC 0
30.36
GitHub Action Run
2 php-8.0-phpunit-auto - 10630196724.2 30 Aug 2024 09:23AM UTC 0
8.57
GitHub Action Run
3 php-7.1-phpunit-auto - 10630196724.3 30 Aug 2024 09:23AM UTC 0
43.52
GitHub Action Run
4 php-7.3-phpunit-7.2.7 - 10630196724.4 30 Aug 2024 09:23AM UTC 0
61.44
GitHub Action Run
5 php-8.2-phpunit-auto - 10630196724.5 30 Aug 2024 09:23AM UTC 0
8.57
GitHub Action Run
6 php-7.2-phpunit-auto - 10630196724.6 30 Aug 2024 09:23AM UTC 0
34.58
GitHub Action Run
7 php-7.2-phpunit-phar-8.0 - 10630196724.7 30 Aug 2024 09:23AM UTC 0
43.8
GitHub Action Run
8 php-7.4-phpunit-8.1.6 - 10630196724.8 30 Aug 2024 09:23AM UTC 0
43.95
GitHub Action Run
9 php-8.3-phpunit-auto - 10630196724.9 30 Aug 2024 09:23AM UTC 0
8.57
GitHub Action Run
10 php-7.2-phpunit-phar-6 - 10630196724.10 30 Aug 2024 09:23AM UTC 0
61.29
GitHub Action Run
11 php-7.0-phpunit-5.7.27 - 10630196724.11 30 Aug 2024 09:23AM UTC 0
61.44
GitHub Action Run
12 php-5.6-phpunit-auto - 10630196724.12 30 Aug 2024 09:23AM UTC 0
51.39
GitHub Action Run
13 php-5.6-phpunit-phar-4 - 10630196724.13 30 Aug 2024 09:23AM UTC 0
68.83
GitHub Action Run
14 php-8.0-phpunit-9.3.0 - 10630196724.14 30 Aug 2024 09:23AM UTC 0
30.54
GitHub Action Run
15 php-7.4-phpunit-auto - 10630196724.15 30 Aug 2024 09:23AM UTC 0
9.64
GitHub Action Run
16 php-8.1-phpunit-auto - 10630196724.16 30 Aug 2024 09:23AM UTC 0
8.57
GitHub Action Run
17 php-7.1-phpunit-phar-5 - 10630196724.17 30 Aug 2024 09:23AM UTC 0
61.44
GitHub Action Run
18 php-8.2-phpunit-9.3.0 - 10630196724.18 30 Aug 2024 09:23AM UTC 0
30.36
GitHub Action Run
19 php-7.3-phpunit-auto - 10630196724.19 30 Aug 2024 09:23AM UTC 0
9.64
GitHub Action Run
20 php-5.6-phpunit-5.7.21 - 10630196724.20 30 Aug 2024 09:23AM UTC 0
51.39
GitHub Action Run
21 php-8.1-phpunit-9.3.0 - 10630196724.21 30 Aug 2024 09:23AM UTC 0
30.54
GitHub Action Run
22 php-7.1-phpunit-5.7.21 - 10630196724.22 30 Aug 2024 09:23AM UTC 0
61.44
GitHub Action Run
23 php-7.2-phpunit-6.3.1 - 10630196724.23 30 Aug 2024 09:23AM UTC 0
61.88
GitHub Action Run
24 php-7.0-phpunit-auto - 10630196724.24 30 Aug 2024 09:23AM UTC 0
61.0
GitHub Action Run
25 php-5.4-phpunit-auto - 10630196724.25 30 Aug 2024 09:23AM UTC 0
68.83
GitHub Action Run
26 php-7.4-phpunit-9.6.10 - 10630196724.26 30 Aug 2024 09:23AM UTC 0
18.75
GitHub Action Run
27 php-5.5-phpunit-auto - 10630196724.27 30 Aug 2024 09:23AM UTC 0
68.83
GitHub Action Run
28 php-7.3-phpunit-phar-9.0 - 10630196724.28 30 Aug 2024 09:23AM UTC 0
34.15
GitHub Action Run
29 php-7.4-phpunit-phar-8 - 10630196724.29 30 Aug 2024 09:23AM UTC 0
35.01
GitHub Action Run
30 php-7.3-phpunit-phar-7 - 10630196724.30 30 Aug 2024 09:23AM UTC 0
44.09
GitHub Action Run
31 php-8.3-phpunit-phar-9 - 10630196724.31 30 Aug 2024 09:23AM UTC 0
8.57
GitHub Action Run
Source Files on build 10630196724
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10630196724
  • 7ecb112f on github
  • Prev Build on 1.x (#9944025968)
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