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

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

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

03 Sep 2024 03:48PM UTC coverage: 97.444% (+0.2%) from 97.276%
10686531444

push

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>

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

648 of 665 relevant lines covered (97.44%)

151.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.2-phpunit-phar-11.0 - 10686531444.1 03 Sep 2024 04:03PM UTC 36
19.5
GitHub Action Run
2 php-8.3-phpunit-phar-11.1 - 10686531444.2 03 Sep 2024 04:03PM UTC 36
19.5
GitHub Action Run
3 php-8.0-phpunit-auto - 10686531444.3 03 Sep 2024 04:03PM UTC 36
45.38
GitHub Action Run
4 php-7.4-phpunit-phar-8 - 10686531444.4 03 Sep 2024 04:03PM UTC 36
62.23
GitHub Action Run
5 php-8.3-phpunit-phar-10 - 10686531444.5 03 Sep 2024 04:04PM UTC 36
23.36
GitHub Action Run
6 php-7.3-phpunit-auto - 10686531444.6 03 Sep 2024 04:03PM UTC 36
46.07
GitHub Action Run
7 php-7.2-phpunit-phar-8.0 - 10686531444.7 03 Sep 2024 04:03PM UTC 36
65.83
GitHub Action Run
8 php-8.2-phpunit-~11.1.0 - 10686531444.8 03 Sep 2024 04:03PM UTC 36
19.5
GitHub Action Run
9 php-7.2-phpunit-~7.1.0 - 10686531444.9 03 Sep 2024 04:03PM UTC 36
81.8
GitHub Action Run
10 php-8.1-phpunit-auto - 10686531444.10 03 Sep 2024 04:03PM UTC 36
23.53
GitHub Action Run
11 php-7.3-phpunit-7.2.7 - 10686531444.11 03 Sep 2024 04:03PM UTC 36
82.12
GitHub Action Run
12 php-8.1-phpunit-10.0.12 - 10686531444.12 03 Sep 2024 04:03PM UTC 36
32.1
GitHub Action Run
13 php-7.4-phpunit-auto - 10686531444.13 03 Sep 2024 04:03PM UTC 36
46.25
GitHub Action Run
14 php-7.3-phpunit-phar-9.0 - 10686531444.14 03 Sep 2024 04:03PM UTC 36
61.0
GitHub Action Run
15 php-8.3-phpunit-phar-9 - 10686531444.15 03 Sep 2024 04:04PM UTC 36
45.55
GitHub Action Run
16 php-8.1-phpunit-9.3.0 - 10686531444.16 03 Sep 2024 04:03PM UTC 36
58.12
GitHub Action Run
17 php-8.3-phpunit-10.1.0 - 10686531444.17 03 Sep 2024 04:03PM UTC 36
23.36
GitHub Action Run
18 php-7.1-phpunit-auto - 10686531444.18 03 Sep 2024 04:03PM UTC 36
65.46
GitHub Action Run
19 php-8.3-phpunit-11.0.0 - 10686531444.19 03 Sep 2024 04:03PM UTC 36
19.5
GitHub Action Run
20 php-8.1-phpunit-phar-10.0 - 10686531444.20 03 Sep 2024 04:03PM UTC 36
33.33
GitHub Action Run
21 php-7.2-phpunit-auto - 10686531444.21 03 Sep 2024 04:03PM UTC 36
61.44
GitHub Action Run
22 php-7.1-phpunit-~6.4.4 - 10686531444.22 03 Sep 2024 04:03PM UTC 36
81.62
GitHub Action Run
23 php-7.4-phpunit-9.6.10 - 10686531444.23 03 Sep 2024 04:04PM UTC 36
55.15
GitHub Action Run
24 php-7.2-phpunit-phar-6 - 10686531444.24 03 Sep 2024 04:03PM UTC 36
81.96
GitHub Action Run
25 php-7.4-phpunit-8.1.6 - 10686531444.25 03 Sep 2024 04:03PM UTC 36
66.14
GitHub Action Run
26 php-7.0-phpunit-6.4.4 - 10686531444.26 03 Sep 2024 04:03PM UTC 36
81.46
GitHub Action Run
27 php-8.2-phpunit-9.3.0 - 10686531444.27 03 Sep 2024 04:03PM UTC 36
58.12
GitHub Action Run
28 php-7.3-phpunit-phar-7 - 10686531444.28 03 Sep 2024 04:03PM UTC 36
66.14
GitHub Action Run
29 php-7.0-phpunit-auto - 10686531444.29 03 Sep 2024 04:03PM UTC 36
81.46
GitHub Action Run
30 php-8.0-phpunit-9.3.0 - 10686531444.30 03 Sep 2024 04:03PM UTC 36
58.12
GitHub Action Run
Source Files on build 10686531444
  • Tree
  • List 36
  • Changed 5
  • Source Changed 5
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10686531444
  • 113bdd62 on github
  • Prev Build on WIP/3.x (#10686325124)
  • Next Build on WIP/3.x (#10705029031)
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