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

sirbrillig / phpcs-variable-analysis / 10756837739
94%
2.x: 94%

Build:
Build:
LAST BUILD BRANCH: 3.x
DEFAULT BRANCH: 2.x
Ran 08 Sep 2024 03:53AM UTC
Jobs 4
Files 9
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

08 Sep 2024 03:51AM UTC coverage: 93.825%. Remained the same
10756837739

push

github

jrfnl
Tests: allow for running on PHPUnit 10/11

Until now, the tests would run on PHPUnit 9 for PHP 7.3 and higher.

PHPUnit 10 (PHP 8.1+) was released in February 2023, PHPUnit 11 (PHP 8.2+) in February 2024 and the update for this test suite is quite painless, so let's allow for running the tests on PHPUnit 10 and 11.

This commit actions this.

Things to be aware of:

Handling of PHPUnit deprecations

Prior to PHPUnit 10.5.32 and PHPUnit 11.3.3, if the `failOnDeprecation` attribute was set (previously: `convertDeprecationsToExceptions`), tests runs would not only fail on PHP deprecation notices, but also on PHPUnit native deprecation notices when running on PHPUnit 10/11.

This undesireable behaviour has now (finally) been reverted, which makes updating test suites for compatibility with PHPUnit 10/11 a lot more straight-forward.

This is the reason that the minimum PHPUnit 10/11 versions in the `composer.json` file are set to such specific versions.

As part of this change, PHPUnit 10.5.32 and 11.3.3 introduce two new options for both the configuration file and as CLI arguments: `displayDetailsOnPhpunitDeprecations` and `failOnPhpunitDeprecation`, both of which will default to `false`.

These options have been added to the PHPUnit configuration for PHPUnit 10/11 to safeguard them against changes in the default value.

Test configuration file changes

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

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.

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.

With that in mind, I deem it more appropriate to have a dedicat... (continued)

1869 of 1992 relevant lines covered (93.83%)

136.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-5.4-phpcs-dev-master - 10756837739.1 08 Sep 2024 03:54AM UTC 0
93.29
GitHub Action Run
2 php-7.4-phpcs-3.5.6 - 10756837739.2 08 Sep 2024 03:53AM UTC 0
93.02
GitHub Action Run
3 php-5.4-phpcs-3.5.6 - 10756837739.3 08 Sep 2024 03:54AM UTC 0
92.83
GitHub Action Run
4 php-8.3-phpcs-dev-master - 10756837739.4 08 Sep 2024 03:53AM UTC 0
93.24
GitHub Action Run
Source Files on build 10756837739
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10756837739
  • 179ff856 on github
  • Prev Build on feature/allow-for-phpunit-11 (#10756701665)
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