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

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

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 06 Sep 2024 08:43PM 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:42PM UTC coverage: 97.444%. First build
10744983941

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.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-7.3-phpunit-phar-7 - 10744983941.1 06 Sep 2024 08:43PM UTC 36
66.14
GitHub Action Run
2 php-7.2-phpunit-phar-6 - 10744983941.2 06 Sep 2024 08:43PM UTC 36
81.96
GitHub Action Run
3 php-8.3-phpunit-10.1.0 - 10744983941.3 06 Sep 2024 08:43PM UTC 36
23.36
GitHub Action Run
4 php-8.3-phpunit-11.0.0 - 10744983941.4 06 Sep 2024 08:43PM UTC 36
19.5
GitHub Action Run
5 php-7.3-phpunit-phar-9.0 - 10744983941.5 06 Sep 2024 08:43PM UTC 36
61.0
GitHub Action Run
6 php-7.0-phpunit-auto - 10744983941.6 06 Sep 2024 08:43PM UTC 36
81.46
GitHub Action Run
7 php-8.2-phpunit-phar-11.0 - 10744983941.7 06 Sep 2024 08:44PM UTC 36
19.5
GitHub Action Run
8 php-7.4-phpunit-8.1.6 - 10744983941.8 06 Sep 2024 08:43PM UTC 36
66.14
GitHub Action Run
9 php-8.1-phpunit-auto - 10744983941.9 06 Sep 2024 08:44PM UTC 36
23.53
GitHub Action Run
10 php-8.3-phpunit-auto - 10744983941.10 06 Sep 2024 08:43PM UTC 36
4.03
GitHub Action Run
11 php-8.3-phpunit-phar-9 - 10744983941.11 06 Sep 2024 08:44PM UTC 36
45.55
GitHub Action Run
12 php-8.2-phpunit-~11.1.0 - 10744983941.12 06 Sep 2024 08:43PM UTC 36
19.5
GitHub Action Run
13 php-8.0-phpunit-9.3.0 - 10744983941.13 06 Sep 2024 08:43PM UTC 36
58.12
GitHub Action Run
14 php-7.3-phpunit-7.2.7 - 10744983941.14 06 Sep 2024 08:43PM UTC 36
82.12
GitHub Action Run
15 php-8.3-phpunit-phar-11 - 10744983941.15 06 Sep 2024 08:44PM UTC 36
4.03
GitHub Action Run
16 php-8.1-phpunit-10.0.12 - 10744983941.16 06 Sep 2024 08:44PM UTC 36
32.1
GitHub Action Run
17 php-7.4-phpunit-9.6.10 - 10744983941.17 06 Sep 2024 08:44PM UTC 36
55.15
GitHub Action Run
18 php-8.2-phpunit-auto - 10744983941.18 06 Sep 2024 08:43PM UTC 36
4.03
GitHub Action Run
19 php-7.1-phpunit-auto - 10744983941.19 06 Sep 2024 08:44PM UTC 36
65.46
GitHub Action Run
20 php-7.0-phpunit-6.4.4 - 10744983941.20 06 Sep 2024 08:44PM UTC 36
81.46
GitHub Action Run
21 php-8.3-phpunit-phar-10 - 10744983941.21 06 Sep 2024 08:44PM UTC 36
23.36
GitHub Action Run
22 php-7.4-phpunit-auto - 10744983941.22 06 Sep 2024 08:44PM UTC 36
46.25
GitHub Action Run
23 php-8.2-phpunit-9.3.0 - 10744983941.23 06 Sep 2024 08:43PM UTC 36
58.12
GitHub Action Run
24 php-7.1-phpunit-~6.4.4 - 10744983941.24 06 Sep 2024 08:44PM UTC 36
81.62
GitHub Action Run
25 php-7.3-phpunit-auto - 10744983941.25 06 Sep 2024 08:43PM UTC 36
46.07
GitHub Action Run
26 php-7.2-phpunit-~7.1.0 - 10744983941.26 06 Sep 2024 08:44PM UTC 36
81.8
GitHub Action Run
27 php-8.1-phpunit-phar-10.0 - 10744983941.27 06 Sep 2024 08:44PM UTC 36
33.33
GitHub Action Run
28 php-7.2-phpunit-auto - 10744983941.28 06 Sep 2024 08:43PM UTC 36
61.44
GitHub Action Run
29 php-8.1-phpunit-9.3.0 - 10744983941.29 06 Sep 2024 08:43PM UTC 36
58.12
GitHub Action Run
30 php-7.4-phpunit-phar-8 - 10744983941.30 06 Sep 2024 08:43PM UTC 36
62.23
GitHub Action Run
31 php-7.2-phpunit-phar-8.0 - 10744983941.31 06 Sep 2024 08:44PM UTC 36
65.83
GitHub Action Run
32 php-8.0-phpunit-auto - 10744983941.32 06 Sep 2024 08:43PM UTC 36
45.38
GitHub Action Run
Source Files on build 10744983941
  • 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 #10744983941
  • a3622b2a on github
  • Next Build on feature/3.x/new-assertobjectnotequals-polyfill-trait (#10745134502)
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