[wp-trac] [WordPress Trac] #46149: PHPUnit 8.x support
WordPress Trac
noreply at wordpress.org
Mon Jul 5 21:19:08 UTC 2021
#46149: PHPUnit 8.x support
-------------------------------------------------+-------------------------
Reporter: SergeyBiryukov | Owner: netweb
Type: task (blessed) | Status: assigned
Priority: high | Milestone: Future
| Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests early php8 | Focuses:
needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:50 jrf]:
> I know I'm biased, but I would strongly recommend using the
[https://github.com/Yoast/PHPUnit-Polyfills PHPUnit Polyfills] to solve
the majority of issues.
>
> The Polyfills allow for using the expectations and assertions as
available in PHPUnit 9.x and to still run the tests on PHPUnit 4.8 - 9.x.
> It also includes a `TestCase` solution solving the `void` problem.
Just voicing my support for this as it seems to be the most sensible
approach.
Per discussion with Juliette, I think we can take things one step at a
time for clarity and modernize the assertions first, then tackle the
`void` return type issue separately.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46149#comment:53>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list