[wp-trac] [WordPress Trac] #46149: PHPUnit 8.x support

WordPress Trac noreply at wordpress.org
Wed Aug 11 21:47:42 UTC 2021


#46149: PHPUnit 8.x support
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  jrf
     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 thomasplevy):

 Replying to [comment:100 jrf]:

 > I've just [https://github.com/WordPress/wordpress-develop/pull/1563
 opened a PR on GitHub] with a proposal to make the loading of the PHPUnit
 Polyfills package more flexible.
 >
 > I'd really appreciate it if you could look it over, test it and would
 give your opinion.

 I know I'm probably a bit late as the changes already appear to be merged
 in but this *works perfectly* for my needs. I've been able to switch my
 test utils framework, drop phpunit as a dependency and include the PHPUnit
 Polyfills and it all loads as expected (since I'm including my composer
 autoloader (that makes PHPUnit Polyfills autoloader available) in my own
 bootstrap file loaded via my `phpunit.xml` config file.

 I can't exactly switch today (but I also *don't have to*) as I have quite
 a bit of other changes to make (namely switching incompatible fixture
 usage over to snake case methods) and then there's some deprecations in
 PHP Unit 8+ that we're still using that we'll have to switch off of. But
 that's for me to deal with.

 Thanks so much for all the hard work here @jrf -- I'm very excited to see
 the version compatibility matrix nightmare being handled by the WP Core so
 that I can run my testing matrix with a relatively small number of
 headaches. A million thank yous <3

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46149#comment:121>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list