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

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

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Ran 19 Aug 2023 02:17PM UTC
Jobs 21
Files 41
Run time 3s
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

19 Aug 2023 02:16PM UTC coverage: 97.814% (+1.4%) from 96.439%
5911902238

push

github

jrfnl
PHPUnit 9.6.11 | AssertObjectProperty trait: polyfill the Assert::assertObject[Not]HasProperty() methods

PHPUnit 10.1.0 introduced the new `Assert::assertObjectHasProperty()` and `Assert::assertObjectNotHasProperty()` methods.

These methods have now been backported to PHPUnit 9.6.11, so should be made available in the PHPUnit Polyfills 1.x series.

This commit:
* Adds two traits with the same name.
    One to polyfill the methods when not available in PHPUnit.
    The other - an empty trait - to allow for `use`-ing the trait in PHPUnit versions in which the methods are already natively available.
* Logic to the custom autoloader which will load the correct trait depending on the PHPUnit version used.
* An availability test and functional tests for the functionality polyfilled.

Includes:
* Adding the new polyfill to the existing `TestCases` classes.

Refs:
* https://github.com/sebastianbergmann/phpunit/issues/5220
* https://github.com/sebastianbergmann/phpunit/pull/5231 (and follow up commits/PRs)
* https://github.com/sebastianbergmann/phpunit/issues/5478

Co-authored-by: Jan-Sverre Riksfjord <jasverix@gmail.com>
Co-authored-by: Sebastian Bergmann <sb@sebastian-bergmann.de>

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

537 of 549 relevant lines covered (97.81%)

70.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-7.2-phpunit-auto - 5911902238.1 19 Aug 2023 02:17PM UTC 41
36.15
GitHub Action Run
2 php-7.0-phpunit-auto - 5911902238.2 19 Aug 2023 02:17PM UTC 41
60.04
GitHub Action Run
3 php-7.4-phpunit-auto - 5911902238.3 19 Aug 2023 02:17PM UTC 41
8.52
GitHub Action Run
4 php-5.6-phpunit-5.7.21 - 5911902238.4 19 Aug 2023 02:17PM UTC 41
61.69
GitHub Action Run
5 php-7.1-phpunit-5.7.21 - 5911902238.5 19 Aug 2023 02:16PM UTC 41
60.6
GitHub Action Run
6 php-8.1-phpunit-9.3.0 - 5911902238.6 19 Aug 2023 02:17PM UTC 41
36.5
GitHub Action Run
7 php-7.1-phpunit-auto - 5911902238.7 19 Aug 2023 02:17PM UTC 41
43.67
GitHub Action Run
8 php-7.4-phpunit-9.6.10 - 5911902238.8 19 Aug 2023 02:17PM UTC 41
20.19
GitHub Action Run
9 php-7.0-phpunit-5.7.27 - 5911902238.9 19 Aug 2023 02:16PM UTC 41
60.6
GitHub Action Run
10 php-7.4-phpunit-8.1.6 - 5911902238.10 19 Aug 2023 02:17PM UTC 41
44.22
GitHub Action Run
11 php-8.0-phpunit-auto - 5911902238.11 19 Aug 2023 02:17PM UTC 41
7.3
GitHub Action Run
12 php-7.3-phpunit-auto - 5911902238.12 19 Aug 2023 02:17PM UTC 41
8.52
GitHub Action Run
13 php-8.2-phpunit-auto - 5911902238.13 19 Aug 2023 02:17PM UTC 41
7.3
GitHub Action Run
14 php-8.0-phpunit-9.3.0 - 5911902238.14 19 Aug 2023 02:17PM UTC 41
36.5
GitHub Action Run
15 php-5.4-phpunit-auto - 5911902238.15 19 Aug 2023 02:17PM UTC 41
80.18
GitHub Action Run
16 php-7.2-phpunit-6.3.1 - 5911902238.16 19 Aug 2023 02:17PM UTC 41
60.98
GitHub Action Run
17 php-7.3-phpunit-7.2.7 - 5911902238.17 19 Aug 2023 02:17PM UTC 41
60.6
GitHub Action Run
18 php-8.2-phpunit-9.3.0 - 5911902238.18 19 Aug 2023 02:17PM UTC 41
36.5
GitHub Action Run
19 php-8.1-phpunit-auto - 5911902238.19 19 Aug 2023 02:17PM UTC 41
7.3
GitHub Action Run
20 php-5.5-phpunit-auto - 5911902238.20 19 Aug 2023 02:17PM UTC 41
80.18
GitHub Action Run
21 php-5.6-phpunit-auto - 5911902238.21 19 Aug 2023 02:17PM UTC 41
61.69
GitHub Action Run
Source Files on build 5911902238
  • Tree
  • List 41
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2810188f on github
  • Prev Build on 1.x (#5190678612)
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