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

Yoast / PHPUnit-Polyfills / 10686325124
98%
3.x: 98%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 03 Sep 2024 03:49PM UTC
Jobs 30
Files 33
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

03 Sep 2024 03:48PM UTC coverage: 97.276%. First build
10686325124

push

github

jrfnl
PHPUnit 11 | AssertArrayWithListKeys trait: polyfill the Assert::assertArrayIsEqualToArrayOnlyConsideringListOfKeys() et al methods

PHPUnit 11.0.0 introduces the new `Assert::assertArrayIsEqualToArrayOnlyConsideringListOfKeys()`, `Assert::assertArrayIsEqualToArrayIgnoringListOfKeys()`, `Assert::assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys()` and `Assert::assertArrayIsIdenticalToArrayIgnoringListOfKeys()` methods.

This commit:
* Adds two traits with the same name.
    One to polyfill the methods when not available in PHPUnit.
    The other - an empty trait - to allow for `use`-ing the trait in PHPUnit versions in which the methods are already natively available.
* Logic to the custom autoloader which will load the correct trait depending on the PHPUnit version used.
* An availability test and limited functional tests for the functionality polyfilled.

Includes:
* Adding the new polyfill to the existing `TestCases` classes.

Refs:
* sebastianbergmann/phpunit 5600
* sebastianbergmann/phpunit 5716
* sebastianbergmann/phpunit 5729

Co-authored-by: Sebastian Bergmann <sb@sebastian-bergmann.de>

27 of 27 new or added lines in 1 file covered. (100.0%)

607 of 624 relevant lines covered (97.28%)

127.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-7.2-phpunit-auto - 10686325124.1 03 Sep 2024 03:49PM UTC 33
59.27
GitHub Action Run
2 php-7.3-phpunit-7.2.7 - 10686325124.2 03 Sep 2024 03:49PM UTC 33
81.1
GitHub Action Run
3 php-7.2-phpunit-phar-6 - 10686325124.3 03 Sep 2024 03:49PM UTC 33
80.94
GitHub Action Run
4 php-7.3-phpunit-phar-7 - 10686325124.4 03 Sep 2024 03:49PM UTC 33
64.24
GitHub Action Run
5 php-8.3-phpunit-phar-10 - 10686325124.5 03 Sep 2024 03:49PM UTC 33
8.45
GitHub Action Run
6 php-8.2-phpunit-9.3.0 - 10686325124.6 03 Sep 2024 03:49PM UTC 33
55.06
GitHub Action Run
7 php-7.1-phpunit-auto - 10686325124.7 03 Sep 2024 03:49PM UTC 33
63.52
GitHub Action Run
8 php-8.1-phpunit-9.3.0 - 10686325124.8 03 Sep 2024 03:49PM UTC 33
55.06
GitHub Action Run
9 php-8.0-phpunit-9.3.0 - 10686325124.9 03 Sep 2024 03:49PM UTC 33
55.06
GitHub Action Run
10 php-7.4-phpunit-phar-8 - 10686325124.10 03 Sep 2024 03:49PM UTC 33
60.1
GitHub Action Run
11 php-7.2-phpunit-phar-8.0 - 10686325124.11 03 Sep 2024 03:49PM UTC 33
63.91
GitHub Action Run
12 php-7.2-phpunit-~7.1.0 - 10686325124.12 03 Sep 2024 03:49PM UTC 33
80.77
GitHub Action Run
13 php-8.1-phpunit-10.0.12 - 10686325124.13 03 Sep 2024 03:49PM UTC 33
17.63
GitHub Action Run
14 php-7.0-phpunit-auto - 10686325124.14 03 Sep 2024 03:49PM UTC 33
80.4
GitHub Action Run
15 php-7.3-phpunit-phar-9.0 - 10686325124.15 03 Sep 2024 03:49PM UTC 33
58.81
GitHub Action Run
16 php-7.4-phpunit-9.6.10 - 10686325124.16 03 Sep 2024 03:49PM UTC 33
41.57
GitHub Action Run
17 php-7.3-phpunit-auto - 10686325124.17 03 Sep 2024 03:49PM UTC 33
31.84
GitHub Action Run
18 php-8.1-phpunit-auto - 10686325124.18 03 Sep 2024 03:49PM UTC 33
8.45
GitHub Action Run
19 php-8.3-phpunit-phar-9 - 10686325124.19 03 Sep 2024 03:49PM UTC 33
31.09
GitHub Action Run
20 php-8.3-phpunit-11.0.0 - 10686325124.20 03 Sep 2024 03:49PM UTC 33
4.32
GitHub Action Run
21 php-8.3-phpunit-phar-11.1 - 10686325124.21 03 Sep 2024 03:49PM UTC 33
4.32
GitHub Action Run
22 php-8.1-phpunit-phar-10.0 - 10686325124.22 03 Sep 2024 03:49PM UTC 33
18.35
GitHub Action Run
23 php-8.2-phpunit-phar-11.0 - 10686325124.23 03 Sep 2024 03:51PM UTC 33
4.32
GitHub Action Run
24 php-8.3-phpunit-10.1.0 - 10686325124.24 03 Sep 2024 03:49PM UTC 33
8.45
GitHub Action Run
25 php-8.2-phpunit-~11.1.0 - 10686325124.25 03 Sep 2024 03:49PM UTC 33
4.32
GitHub Action Run
26 php-7.4-phpunit-8.1.6 - 10686325124.26 03 Sep 2024 03:49PM UTC 33
64.24
GitHub Action Run
27 php-8.0-phpunit-auto - 10686325124.27 03 Sep 2024 03:49PM UTC 33
30.9
GitHub Action Run
28 php-7.4-phpunit-auto - 10686325124.28 03 Sep 2024 03:49PM UTC 33
32.02
GitHub Action Run
29 php-7.1-phpunit-~6.4.4 - 10686325124.29 03 Sep 2024 03:49PM UTC 33
80.57
GitHub Action Run
30 php-7.0-phpunit-6.4.4 - 10686325124.30 03 Sep 2024 03:49PM UTC 33
80.4
GitHub Action Run
Source Files on build 10686325124
  • Tree
  • List 33
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10686325124
  • aa468b92 on github
  • Prev Build on WIP/3.x (#10684635774)
  • Next Build on WIP/3.x (#10686531444)
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