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

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

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

06 Sep 2024 08:56PM UTC coverage: 97.444% (+0.2%) from 97.276%
10745134502

Pull #199

github

jrfnl
PHPUnit 11.2.0 | 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>
Pull Request #199: PHPUnit 11.2.0 | AssertObjectNotEquals trait: polyfill the Assert::assertObjectNotEquals() method

105 of 107 new or added lines in 3 files covered. (98.13%)

648 of 665 relevant lines covered (97.44%)

151.49 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
97.06
src/Helpers/ComparatorValidator.php
Jobs
ID Job ID Ran Files Coverage
1 php-8.2-phpunit-auto - 10745134502.1 06 Sep 2024 08:57PM UTC 36
4.03
GitHub Action Run
2 php-7.0-phpunit-auto - 10745134502.2 06 Sep 2024 08:57PM UTC 36
81.46
GitHub Action Run
3 php-8.2-phpunit-phar-11.0 - 10745134502.3 06 Sep 2024 08:57PM UTC 36
19.5
GitHub Action Run
4 php-8.1-phpunit-10.0.12 - 10745134502.4 06 Sep 2024 08:57PM UTC 36
32.1
GitHub Action Run
5 php-7.4-phpunit-phar-8 - 10745134502.5 06 Sep 2024 08:57PM UTC 36
62.23
GitHub Action Run
6 php-7.2-phpunit-phar-8.0 - 10745134502.6 06 Sep 2024 08:57PM UTC 36
65.83
GitHub Action Run
7 php-8.3-phpunit-10.1.0 - 10745134502.7 06 Sep 2024 08:57PM UTC 36
23.36
GitHub Action Run
8 php-7.3-phpunit-7.2.7 - 10745134502.8 06 Sep 2024 08:57PM UTC 36
82.12
GitHub Action Run
9 php-8.1-phpunit-9.3.0 - 10745134502.9 06 Sep 2024 08:57PM UTC 36
58.12
GitHub Action Run
10 php-8.1-phpunit-phar-10.0 - 10745134502.10 06 Sep 2024 08:57PM UTC 36
33.33
GitHub Action Run
11 php-7.0-phpunit-6.4.4 - 10745134502.11 06 Sep 2024 08:57PM UTC 36
81.46
GitHub Action Run
12 php-7.2-phpunit-auto - 10745134502.12 06 Sep 2024 08:57PM UTC 36
61.44
GitHub Action Run
13 php-7.1-phpunit-~6.4.4 - 10745134502.13 06 Sep 2024 08:57PM UTC 36
81.62
GitHub Action Run
14 php-7.4-phpunit-8.1.6 - 10745134502.14 06 Sep 2024 08:57PM UTC 36
66.14
GitHub Action Run
15 php-7.2-phpunit-phar-6 - 10745134502.15 06 Sep 2024 08:57PM UTC 36
81.96
GitHub Action Run
16 php-8.2-phpunit-9.3.0 - 10745134502.16 06 Sep 2024 08:57PM UTC 36
58.12
GitHub Action Run
17 php-8.3-phpunit-auto - 10745134502.17 06 Sep 2024 08:57PM UTC 36
4.03
GitHub Action Run
18 php-7.3-phpunit-phar-7 - 10745134502.18 06 Sep 2024 08:57PM UTC 36
66.14
GitHub Action Run
19 php-8.1-phpunit-auto - 10745134502.19 06 Sep 2024 08:57PM UTC 36
23.53
GitHub Action Run
20 php-8.3-phpunit-phar-11 - 10745134502.20 06 Sep 2024 08:57PM UTC 36
4.03
GitHub Action Run
21 php-7.3-phpunit-auto - 10745134502.21 06 Sep 2024 08:57PM UTC 36
46.07
GitHub Action Run
22 php-7.4-phpunit-9.6.10 - 10745134502.22 06 Sep 2024 08:57PM UTC 36
55.15
GitHub Action Run
23 php-8.3-phpunit-11.0.0 - 10745134502.23 06 Sep 2024 08:57PM UTC 36
19.5
GitHub Action Run
24 php-8.3-phpunit-phar-9 - 10745134502.24 06 Sep 2024 08:58PM UTC 36
45.55
GitHub Action Run
25 php-8.2-phpunit-~11.1.0 - 10745134502.25 06 Sep 2024 08:57PM UTC 36
19.5
GitHub Action Run
26 php-7.1-phpunit-auto - 10745134502.26 06 Sep 2024 08:57PM UTC 36
65.46
GitHub Action Run
27 php-7.3-phpunit-phar-9.0 - 10745134502.27 06 Sep 2024 08:57PM UTC 36
61.0
GitHub Action Run
28 php-8.0-phpunit-auto - 10745134502.28 06 Sep 2024 08:57PM UTC 36
45.38
GitHub Action Run
29 php-8.3-phpunit-phar-10 - 10745134502.29 06 Sep 2024 08:58PM UTC 36
23.36
GitHub Action Run
30 php-7.4-phpunit-auto - 10745134502.30 06 Sep 2024 08:57PM UTC 36
46.25
GitHub Action Run
31 php-8.0-phpunit-9.3.0 - 10745134502.31 06 Sep 2024 08:57PM UTC 36
58.12
GitHub Action Run
32 php-7.2-phpunit-~7.1.0 - 10745134502.32 06 Sep 2024 08:57PM UTC 36
81.8
GitHub Action Run
Source Files on build 10745134502
  • Tree
  • List 36
  • Changed 14
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10745134502
  • Pull Request #199
  • PR Base - 3.x (#10744972247)
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