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

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

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 17 Jul 2024 01:32PM UTC
Jobs 28
Files 36
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

17 Jul 2024 01:31PM UTC coverage: 97.405%. Remained the same
9975227369

push

github

jrfnl
AssertObjectNotEquals trait: polyfill the Assert::assertObjectNotEquals() method

PHPUnit 11.2.0 introduced the new `Assert::assertObjectNotEquals()` method.

This commit:
* Adds two traits with the same name.
    One to polyfill the method when not available in PHPUnit.
    The other to allow for `use`-ing the trait in PHPUnit versions in which the method is already natively available.
* Logic to the custom autoloader which will load the correct trait depending on the PHPUnit version used.
* Adds tests.

As the polyfill contains logic to match the PHPUnit native implementation as closely as possible, while still being PHP and PHPUnit cross-version compatible, extensive unit tests have been added to ensure the behaviour of the polyfill matches that of the original function.

Includes:
* Adding information on the new polyfill to the README.
* Adding the new polyfill to the existing `TestCases` classes.
* Updating the class docs for the `InvalidComparisonMethodException` and the `ComparatorValidator` classes.

Refs:
* https://github.com/sebastianbergmann/phpunit/issues/5811
* https://github.com/sebastianbergmann/phpunit/commit/8e3b7c185

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

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

2 existing lines in 1 file now uncovered.

638 of 655 relevant lines covered (97.4%)

149.75 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
97.06
0.0% src/Helpers/ComparatorValidator.php
Jobs
ID Job ID Ran Files Coverage
1 php-8.3-phpunit-phar-10 - 9975227369.1 17 Jul 2024 01:33PM UTC 36
23.76
GitHub Action Run
2 php-7.0-phpunit-auto - 9975227369.2 17 Jul 2024 01:33PM UTC 36
81.32
GitHub Action Run
3 php-7.4-phpunit-8.1.6 - 9975227369.3 17 Jul 2024 01:33PM UTC 36
65.61
GitHub Action Run
4 php-8.2-phpunit-auto - 9975227369.4 17 Jul 2024 01:33PM UTC 36
23.76
GitHub Action Run
5 php-7.2-phpunit-auto - 9975227369.5 17 Jul 2024 01:33PM UTC 36
60.99
GitHub Action Run
6 php-7.2-phpunit-phar-8.0 - 9975227369.6 17 Jul 2024 01:33PM UTC 36
65.45
GitHub Action Run
7 php-8.3-phpunit-auto - 9975227369.7 17 Jul 2024 01:33PM UTC 36
23.76
GitHub Action Run
8 php-7.1-phpunit-auto - 9975227369.8 17 Jul 2024 01:38PM UTC 36
65.07
GitHub Action Run
9 php-8.1-phpunit-9.3.0 - 9975227369.9 17 Jul 2024 01:33PM UTC 36
57.37
GitHub Action Run
10 php-8.3-phpunit-phar-9 - 9975227369.10 17 Jul 2024 01:33PM UTC 36
44.58
GitHub Action Run
11 php-7.3-phpunit-phar-9.0 - 9975227369.11 17 Jul 2024 01:33PM UTC 36
60.54
GitHub Action Run
12 php-8.1-phpunit-phar-10.0 - 9975227369.12 17 Jul 2024 01:33PM UTC 36
33.93
GitHub Action Run
13 php-8.1-phpunit-auto - 9975227369.13 17 Jul 2024 01:32PM UTC 36
23.93
GitHub Action Run
14 php-7.3-phpunit-phar-7 - 9975227369.14 17 Jul 2024 01:33PM UTC 36
65.76
GitHub Action Run
15 php-7.0-phpunit-6.4.4 - 9975227369.15 17 Jul 2024 01:33PM UTC 36
81.32
GitHub Action Run
16 php-7.4-phpunit-auto - 9975227369.16 17 Jul 2024 01:33PM UTC 36
45.29
GitHub Action Run
17 php-8.1-phpunit-10.0.12 - 9975227369.17 17 Jul 2024 01:33PM UTC 36
32.65
GitHub Action Run
18 php-8.0-phpunit-9.3.0 - 9975227369.18 17 Jul 2024 01:33PM UTC 36
57.37
GitHub Action Run
19 php-7.3-phpunit-7.2.7 - 9975227369.19 17 Jul 2024 01:33PM UTC 36
81.99
GitHub Action Run
20 php-8.2-phpunit-9.3.0 - 9975227369.20 17 Jul 2024 01:33PM UTC 36
57.37
GitHub Action Run
21 php-7.3-phpunit-auto - 9975227369.21 17 Jul 2024 01:32PM UTC 36
45.29
GitHub Action Run
22 php-7.4-phpunit-phar-8 - 9975227369.22 17 Jul 2024 01:33PM UTC 36
61.62
GitHub Action Run
23 php-7.4-phpunit-9.6.10 - 9975227369.23 17 Jul 2024 01:33PM UTC 36
54.35
GitHub Action Run
24 php-7.2-phpunit-~7.1.0 - 9975227369.24 17 Jul 2024 01:33PM UTC 36
81.67
GitHub Action Run
25 php-8.0-phpunit-auto - 9975227369.25 17 Jul 2024 01:33PM UTC 36
44.4
GitHub Action Run
26 php-7.2-phpunit-phar-6 - 9975227369.26 17 Jul 2024 01:33PM UTC 36
81.83
GitHub Action Run
27 php-7.1-phpunit-~6.4.4 - 9975227369.27 17 Jul 2024 01:33PM UTC 36
81.48
GitHub Action Run
28 php-8.3-phpunit-10.1.0 - 9975227369.28 17 Jul 2024 01:33PM UTC 36
23.76
GitHub Action Run
Source Files on build 9975227369
  • Tree
  • List 36
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9975227369
  • e6a65ff3 on github
  • Prev Build on WIP/3.x (#9975075355)
  • Next Build on WIP/3.x (#10681432610)
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