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

WordPress Trac noreply at wordpress.org
Fri Aug 6 18:02:22 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 jeherve):

 Replying to [comment:66 swissspidy]:
 > Soo...looks like r51560 breaking a lot of plugins' test suites which are
 using scripts like `install-wp-tests.sh` (which is quite common) to get
 the test suite. At least in my plugin I now get `You need to run `composer
 update` before running the tests.` errors when trying to run tests.

 Just in case we need some examples, I'll jump in to say we're running into
 that exact same issue with tests in the Jetpack plugin, with the same
 setup you described in your follow-up comment:

 > The [https://github.com/wp-cli/scaffold-
 command/blob/0a2903456242ae45f7acbe37b1e86a12df94f46f/templates/install-
 wp-tests.sh `install-wp-tests.sh`] script typically downloads the
 `tests/phpunit/includes` and `tests/phpunit/data` folders for running the
 test suite. No other folders and no `compoer.json` file, so one can't run
 `composer update` in such a setup.

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


More information about the wp-trac mailing list