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

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

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

06 Sep 2024 08:16PM UTC coverage: 97.276% (+0.1%) from 97.152%
10744667604

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%)

128.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-7.4-phpunit-9.6.10 - 10744667604.1 06 Sep 2024 08:17PM UTC 0
41.57
GitHub Action Run
2 php-8.2-phpunit-~11.1.0 - 10744667604.2 06 Sep 2024 08:17PM UTC 0
4.32
GitHub Action Run
3 php-8.1-phpunit-9.3.0 - 10744667604.3 06 Sep 2024 08:18PM UTC 0
55.06
GitHub Action Run
4 php-8.1-phpunit-10.0.12 - 10744667604.4 06 Sep 2024 08:17PM UTC 0
17.63
GitHub Action Run
5 php-8.3-phpunit-10.1.0 - 10744667604.5 06 Sep 2024 08:17PM UTC 0
8.45
GitHub Action Run
6 php-7.2-phpunit-phar-8.0 - 10744667604.6 06 Sep 2024 08:18PM UTC 0
63.91
GitHub Action Run
7 php-8.1-phpunit-phar-10.0 - 10744667604.7 06 Sep 2024 08:17PM UTC 0
18.35
GitHub Action Run
8 php-8.3-phpunit-phar-10 - 10744667604.8 06 Sep 2024 08:17PM UTC 0
8.45
GitHub Action Run
9 php-7.2-phpunit-phar-6 - 10744667604.9 06 Sep 2024 08:17PM UTC 0
80.94
GitHub Action Run
10 php-7.3-phpunit-phar-7 - 10744667604.10 06 Sep 2024 08:18PM UTC 0
64.24
GitHub Action Run
11 php-7.1-phpunit-auto - 10744667604.11 06 Sep 2024 08:17PM UTC 0
63.52
GitHub Action Run
12 php-8.1-phpunit-auto - 10744667604.12 06 Sep 2024 08:17PM UTC 0
8.45
GitHub Action Run
13 php-8.2-phpunit-phar-11.0 - 10744667604.13 06 Sep 2024 08:17PM UTC 0
4.32
GitHub Action Run
14 php-8.3-phpunit-phar-11 - 10744667604.14 06 Sep 2024 08:18PM UTC 0
4.32
GitHub Action Run
15 php-7.0-phpunit-auto - 10744667604.15 06 Sep 2024 08:17PM UTC 0
80.4
GitHub Action Run
16 php-7.4-phpunit-8.1.6 - 10744667604.16 06 Sep 2024 08:17PM UTC 0
64.24
GitHub Action Run
17 php-8.2-phpunit-9.3.0 - 10744667604.17 06 Sep 2024 08:17PM UTC 0
55.06
GitHub Action Run
18 php-7.2-phpunit-~7.1.0 - 10744667604.18 06 Sep 2024 08:17PM UTC 0
80.77
GitHub Action Run
19 php-7.4-phpunit-phar-8 - 10744667604.19 06 Sep 2024 08:17PM UTC 0
60.1
GitHub Action Run
20 php-8.3-phpunit-11.0.0 - 10744667604.20 06 Sep 2024 08:17PM UTC 0
4.32
GitHub Action Run
21 php-7.3-phpunit-phar-9.0 - 10744667604.21 06 Sep 2024 08:17PM UTC 0
58.81
GitHub Action Run
22 php-8.0-phpunit-auto - 10744667604.22 06 Sep 2024 08:17PM UTC 0
30.9
GitHub Action Run
23 php-8.0-phpunit-9.3.0 - 10744667604.23 06 Sep 2024 08:17PM UTC 0
55.06
GitHub Action Run
24 php-8.3-phpunit-phar-9 - 10744667604.24 06 Sep 2024 08:17PM UTC 0
31.09
GitHub Action Run
25 php-7.3-phpunit-7.2.7 - 10744667604.25 06 Sep 2024 08:17PM UTC 0
81.1
GitHub Action Run
26 php-8.2-phpunit-auto - 10744667604.26 06 Sep 2024 08:17PM UTC 0
4.32
GitHub Action Run
27 php-7.0-phpunit-6.4.4 - 10744667604.27 06 Sep 2024 08:17PM UTC 0
80.4
GitHub Action Run
28 php-7.3-phpunit-auto - 10744667604.28 06 Sep 2024 08:17PM UTC 0
31.84
GitHub Action Run
29 php-7.1-phpunit-~6.4.4 - 10744667604.29 06 Sep 2024 08:17PM UTC 0
80.57
GitHub Action Run
30 php-7.4-phpunit-auto - 10744667604.30 06 Sep 2024 08:17PM UTC 0
32.02
GitHub Action Run
31 php-8.3-phpunit-auto - 10744667604.31 06 Sep 2024 08:17PM UTC 0
4.32
GitHub Action Run
32 php-7.2-phpunit-auto - 10744667604.32 06 Sep 2024 08:17PM UTC 0
59.27
GitHub Action Run
Source Files on build 10744667604
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #10744667604
  • 31891230 on github
  • Prev Build on 3.x (#10744635393)
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