[wp-trac] [WordPress Trac] #46149: PHPUnit 8.x support
WordPress Trac
noreply at wordpress.org
Fri Jul 30 20:48:24 UTC 2021
#46149: PHPUnit 8.x support
-------------------------------------------------+-------------------------
Reporter: SergeyBiryukov | Owner: netweb
Type: task (blessed) | Status: assigned
Priority: high | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests early php8 | Focuses:
needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by hellofromTonya):
During today's working session with @johnbillion @SergeyBiryukov @jrf
@nextweb and me ([https://youtu.be/SAtiKaUwLU4 see the live stream here]),
we discussed and reached consensus on adopting the practice of building
tests to the latest PHPUnit version:
- Adopt [https://github.com/Yoast/PHPUnit-Polyfills PHPUnit Polyfills] to
shim backwards for cross-version compatibility
- Add an adapter layer between the tooling and Core's test cases for
future flexibility
- Change the inheritance order
- Remove the copied PHPUnit files and PHPUnit assertions
- Adopt Polyfills snakecase fixture methods (as PHPUnit 8 method
signatures changed) -> this is a breaking change for extenders who are
using fixture methods in their tests
- Help extenders with this breaking change (new ticket coming)
- Get the atomic commits ([https://github.com/jrfnl/wordpress-develop-
official/commits/WIP/all-stacked-in-the-right-
order?before=189e88d915151987e208ec54bb350a6bc82477b1+35&branch=WIP%2Fall-
stacked-in-the-right-order listed here from 55173bd to 63bbf0a]) committed
(in order) ASAP
- Implement a very very early communication plan for outreach to the
extender community including publishing a Dev Note on Make Core (i.e. to
give the extender community awareness and guidance on how to prepare their
test suites)
This plan will add PHPUnit 8 and 9 support to Core. Plus, it sets up the
test suites to adopt future PHPUnit versions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46149#comment:59>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list