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

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

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 03 Sep 2024 10:53AM UTC
Jobs 29
Files 35
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 10:44AM UTC coverage: 96.423% (+0.6%) from 95.846%
10681530567

push

github

jrfnl
Drop support for PHP < 7.0 [4]

In the original implementation of the `assertObjectEquals()` polyfill, the polyfill could not mirror the PHPUnit native implementation completely as that required support for return types, which was only added in PHP 7.0, while the polyfill was introduced in PHPUnit Polyfills 1.0, which still supported PHP 5.5.

So instead of checking whether the "comparator" method had a return type declared and verifying that this return type complied with the requirements set by PHPUnit, the polyfill originally checked whether the _returned value_ complied with the required type.

Now support for PHP < 7.0 is being dropped, the `assertObjectEquals()` polyfill can be updated to fix this implementation difference.

Includes unit tests for the changed functionality/new logic paths throwing exceptions.
Includes updated documentation in the README.

Refs:
* 38
* sebastianbergmann/phpunit 4707
* sebastianbergmann/phpunit 4467
* sebastianbergmann/phpunit 4707
* https://github.com/sebastianbergmann/phpunit/commit/1dba8c3a4
* https://github.com/sebastianbergmann/phpunit/commit/6099c5eef

28 of 29 new or added lines in 1 file covered. (96.55%)

2 existing lines in 2 files now uncovered.

620 of 643 relevant lines covered (96.42%)

124.33 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.98
5.43% src/Polyfills/AssertObjectEquals.php

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.18
-2.82% src/Helpers/ResourceHelper.php
1
97.98
5.43% src/Polyfills/AssertObjectEquals.php
Jobs
ID Job ID Ran Files Coverage
1 php-7.0-phpunit-auto - 10681530567.1 03 Sep 2024 10:53AM UTC 35
75.61
GitHub Action Run
2 php-8.1-phpunit-9.3.0 - 10681530567.2 03 Sep 2024 10:53AM UTC 35
49.0
GitHub Action Run
3 php-8.2-phpunit-auto - 10681530567.3 03 Sep 2024 10:53AM UTC 35
5.6
GitHub Action Run
4 php-8.2-phpunit-9.3.0 - 10681530567.4 03 Sep 2024 10:53AM UTC 35
49.0
GitHub Action Run
5 php-8.0-phpunit-9.3.0 - 10681530567.5 03 Sep 2024 10:53AM UTC 35
49.0
GitHub Action Run
6 php-7.0-phpunit-5.7.27 - 10681530567.6 03 Sep 2024 10:53AM UTC 35
76.09
GitHub Action Run
7 php-7.4-phpunit-auto - 10681530567.7 03 Sep 2024 10:53AM UTC 35
26.59
GitHub Action Run
8 php-7.3-phpunit-auto - 10681530567.8 03 Sep 2024 10:53AM UTC 35
26.59
GitHub Action Run
9 php-7.1-phpunit-auto - 10681530567.9 03 Sep 2024 10:53AM UTC 35
56.26
GitHub Action Run
10 php-8.3-phpunit-phar-9 - 10681530567.10 03 Sep 2024 10:54AM UTC 35
25.68
GitHub Action Run
11 php-8.3-phpunit-10.1.0 - 10681530567.11 03 Sep 2024 10:53AM UTC 35
5.6
GitHub Action Run
12 php-7.2-phpunit-auto - 10681530567.12 03 Sep 2024 10:53AM UTC 35
52.22
GitHub Action Run
13 php-7.3-phpunit-7.2.7 - 10681530567.13 03 Sep 2024 10:53AM UTC 35
76.29
GitHub Action Run
14 php-7.4-phpunit-phar-8 - 10681530567.14 03 Sep 2024 10:53AM UTC 35
52.85
GitHub Action Run
15 php-7.1-phpunit-phar-5 - 10681530567.15 03 Sep 2024 10:53AM UTC 35
76.25
GitHub Action Run
16 php-8.1-phpunit-10.0.12 - 10681530567.16 03 Sep 2024 10:53AM UTC 35
14.54
GitHub Action Run
17 php-7.4-phpunit-9.6.10 - 10681530567.17 03 Sep 2024 10:53AM UTC 35
35.88
GitHub Action Run
18 php-7.3-phpunit-phar-7 - 10681530567.18 03 Sep 2024 10:53AM UTC 35
56.96
GitHub Action Run
19 php-8.3-phpunit-auto - 10681530567.19 03 Sep 2024 10:53AM UTC 35
5.6
GitHub Action Run
20 php-7.2-phpunit-6.3.1 - 10681530567.20 03 Sep 2024 10:53AM UTC 35
76.77
GitHub Action Run
21 php-7.2-phpunit-phar-8.0 - 10681530567.21 03 Sep 2024 10:54AM UTC 35
56.65
GitHub Action Run
22 php-7.1-phpunit-5.7.21 - 10681530567.22 03 Sep 2024 10:53AM UTC 35
76.25
GitHub Action Run
23 php-8.0-phpunit-auto - 10681530567.23 03 Sep 2024 10:53AM UTC 35
25.5
GitHub Action Run
24 php-8.3-phpunit-phar-10 - 10681530567.24 03 Sep 2024 10:54AM UTC 35
5.6
GitHub Action Run
25 php-7.2-phpunit-phar-6 - 10681530567.25 03 Sep 2024 10:53AM UTC 35
76.13
GitHub Action Run
26 php-7.3-phpunit-phar-9.0 - 10681530567.26 03 Sep 2024 10:53AM UTC 35
51.81
GitHub Action Run
27 php-8.1-phpunit-phar-10.0 - 10681530567.27 03 Sep 2024 10:54AM UTC 35
15.12
GitHub Action Run
28 php-8.1-phpunit-auto - 10681530567.28 03 Sep 2024 10:53AM UTC 35
5.6
GitHub Action Run
29 php-7.4-phpunit-8.1.6 - 10681530567.29 03 Sep 2024 10:53AM UTC 35
56.8
GitHub Action Run
Source Files on build 10681530567
  • Tree
  • List 35
  • Changed 13
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10681530567
  • f8f5f527 on github
  • Prev Build on WIP/3.x (#10681432610)
  • Next Build on WIP/3.x (#10681576687)
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